diff options
author | 1997-02-26 14:58:34 +0000 | |
---|---|---|
committer | 1997-02-26 14:58:34 +0000 | |
commit | 374efc8e9e04a0f6e61cfceb7130f3e11d9a3c2a (patch) | |
tree | 6d3fc922df4d5047c05f0b2df4e93f8f028e2d62 | |
parent | FILES sections (diff) | |
download | wireguard-openbsd-374efc8e9e04a0f6e61cfceb7130f3e11d9a3c2a.tar.xz wireguard-openbsd-374efc8e9e04a0f6e61cfceb7130f3e11d9a3c2a.zip |
ipf 1.3.8 + patches
-rw-r--r-- | usr.sbin/ipftest/ipft_tx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ipftest/ipft_tx.c b/usr.sbin/ipftest/ipft_tx.c index 4d1186b1483..fbcef7889fa 100644 --- a/usr.sbin/ipftest/ipft_tx.c +++ b/usr.sbin/ipftest/ipft_tx.c @@ -40,7 +40,7 @@ #if !defined(lint) && defined(LIBC_SCCS) static char sccsid[] = "@(#)ipft_tx.c 1.7 6/5/96 (C) 1993 Darren Reed"; -static char rcsid[] = "$Id: ipft_tx.c,v 1.6 1997/02/11 22:23:55 kstailey Exp $"; +static char rcsid[] = "$DRId: ipft_tx.c,v 2.0.1.3 1997/02/20 09:47:47 darrenr Exp $" #endif extern int opts; @@ -211,6 +211,8 @@ int *out; char *cps[20], **cpp, c, ipopts[68]; int i, r; + if (*ifn) + free(*ifn); bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip)); bzero((char *)tcp, sizeof(*tcp)); bzero((char *)ic, sizeof(*ic)); @@ -236,7 +238,7 @@ int *out; cpp++; if (!*cpp) return 1; - *ifn = *cpp++; + *ifn = strdup(*cpp++); } c = **cpp; |