Page MenuHomeFreeBSD

D9962.diff
No OneTemporary

D9962.diff

Index: head/sbin/ipfw/ipv6.c
===================================================================
--- head/sbin/ipfw/ipv6.c
+++ head/sbin/ipfw/ipv6.c
@@ -339,6 +339,7 @@
{
int len = 0;
struct in6_addr *d = &(cmd->addr6);
+ char *oav;
/*
* Needed for multiple address.
* Note d[1] points to struct in6_add r mask6 of cmd
@@ -365,7 +366,7 @@
return (1);
}
- av = strdup(av);
+ oav = av = strdup(av);
while (av) {
/*
* After the address we can have '/' indicating a mask,
@@ -446,7 +447,7 @@
if (len + 1 > F_LEN_MASK)
errx(EX_DATAERR, "address list too long");
cmd->o.len |= len+1;
- free(av);
+ free(oav);
return (1);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 12, 1:08 PM (2 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23624393
Default Alt Text
D9962.diff (658 B)

Event Timeline