don't try to close wtap, if we couldn't load the wiretap file
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Dec 2005 01:17:36 +0000 (01:17 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Dec 2005 01:17:36 +0000 (01:17 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16771 f5534014-38df-0310-8fa8-9805f1628bb7

capture_info.c

index 66ec62e6c2b30a97ba9dcad4fc2d43c771a9c854..a385886295ff89e1a9c248fab3078fc54580fcc0 100644 (file)
@@ -149,7 +149,8 @@ void capture_info_new_packets(int to_read)
 void capture_info_close(void)
 {
     capture_info_ui_destroy(&info_data.ui);
-    wtap_close(info_data.wtap);
+    if(info_data.wtap)
+        wtap_close(info_data.wtap);
 }