summaryrefslogtreecommitdiff
path: root/fad-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'fad-win32.c')
-rw-r--r--fad-win32.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/fad-win32.c b/fad-win32.c
index 4d2c01ede897..19839c869ed0 100644
--- a/fad-win32.c
+++ b/fad-win32.c
@@ -33,7 +33,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.11.2.3 2006/02/22 17:09:32 gianluca Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.15 2007/09/25 20:34:36 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -301,6 +301,15 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
name += strlen(name) + 1;
desc += strlen(desc) + 1;
}
+
+ if (ret != -1) {
+ /*
+ * We haven't had any errors yet; do any platform-specific
+ * operations to add devices.
+ */
+ if (pcap_platform_finddevs(&devlist, errbuf) < 0)
+ ret = -1;
+ }
if (ret == -1) {
/*