Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpcap prevent double free. From OpenBSD
details: https://anonhg.NetBSD.org/src/rev/0af95834d21c
branches: trunk
changeset: 555669:0af95834d21c
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 24 21:49:12 2003 +0000
description:
prevent double free. From OpenBSD
diffstat:
lib/libpcap/pcap-bpf.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 6e63f88d72e9 -r 0af95834d21c lib/libpcap/pcap-bpf.c
--- a/lib/libpcap/pcap-bpf.c Mon Nov 24 21:44:37 2003 +0000
+++ b/lib/libpcap/pcap-bpf.c Mon Nov 24 21:49:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcap-bpf.c,v 1.9 2002/10/19 22:03:44 thorpej Exp $ */
+/* $NetBSD: pcap-bpf.c,v 1.10 2003/11/24 21:49:12 christos Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996
@@ -26,7 +26,7 @@
static const char rcsid[] =
"@(#) Header: pcap-bpf.c,v 1.29 96/12/31 20:53:40 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: pcap-bpf.c,v 1.9 2002/10/19 22:03:44 thorpej Exp $");
+__RCSID("$NetBSD: pcap-bpf.c,v 1.10 2003/11/24 21:49:12 christos Exp $");
#endif
#endif
@@ -245,7 +245,6 @@
if (ioctl(fd, BIOCGDLTLIST, (caddr_t) &bdl) < 0) {
(void)snprintf(ebuf, PCAP_ERRBUF_SIZE,
"BIOCGDLTLIST: %s", pcap_strerror(errno));
- free(bdl.bfl_list);
goto bad;
}
Home |
Main Index |
Thread Index |
Old Index