aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-05-21 11:08:48 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-05-21 11:08:48 +0000
commit53ed6446d75c468c880d956281651e5074238c66 (patch)
tree13a334bf22a407fd7de3930186f76f585375c004 /capture-wpcap.c
parent88a9628529e748b7dd6d93fe5dc324414a4da016 (diff)
bugfix: prevent a (null pointer access) crash with very early WinPcap version < 2.3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14413 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r--capture-wpcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/capture-wpcap.c b/capture-wpcap.c
index d43bbda2e3..1505f5ff8d 100644
--- a/capture-wpcap.c
+++ b/capture-wpcap.c
@@ -659,7 +659,9 @@ get_runtime_pcap_version(GString *str)
blankp = strchr(packetVer, ' ');
if (blankp != NULL)
*blankp = '\0';
- }
+ } else {
+ packetVer = "version unknown";
+ }
g_module_close(handle);
}
}