summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-02-26 14:58:35 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-02-26 14:58:35 +0000
commit1eee396492a2c95b238966615c320284df477063 (patch)
tree038306e1e3072ccb0ece639643c39ff2f1afca61
parentaa2d061af8f33e9c6f765115ebec204f99eb10a1 (diff)
ipf 1.3.8 + patches
-rw-r--r--usr.sbin/ipftest/ipft_tx.c6
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;