diff options
author | 2006-04-22 17:24:33 +0000 | |
---|---|---|
committer | 2006-04-22 17:24:33 +0000 | |
commit | 598a28e5ba94cd0cc4a0c618a9818addf8508fba (patch) | |
tree | efab1027d1d0a3458960b8099846301c122e7dae /usr.sbin/tcpdump/util.c | |
parent | update output after uaudio(4) changes. (diff) | |
download | wireguard-openbsd-598a28e5ba94cd0cc4a0c618a9818addf8508fba.tar.xz wireguard-openbsd-598a28e5ba94cd0cc4a0c618a9818addf8508fba.zip |
Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@
Diffstat (limited to 'usr.sbin/tcpdump/util.c')
-rw-r--r-- | usr.sbin/tcpdump/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/util.c b/usr.sbin/tcpdump/util.c index 3b2aea3bc9b..93e1715e928 100644 --- a/usr.sbin/tcpdump/util.c +++ b/usr.sbin/tcpdump/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.20 2006/03/13 19:05:56 moritz Exp $ */ +/* $OpenBSD: util.c,v 1.21 2006/04/22 17:24:33 moritz Exp $ */ /* * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/util.c,v 1.20 2006/03/13 19:05:56 moritz Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/util.c,v 1.21 2006/04/22 17:24:33 moritz Exp $ (LBL)"; #endif #include <sys/types.h> @@ -295,6 +295,7 @@ read_infile(char *fname) error("short read %s (%ld != %lu)", fname, (long)cc, (unsigned long)bs); cp[bs] = '\0'; + close(fd); return (cp); } |