I forgot to toggle the data_out_file "semaphore" (well, we us it like one)
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 29 Jan 2000 13:30:08 +0000 (13:30 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 29 Jan 2000 13:30:08 +0000 (13:30 +0000)
at the end of follow_read_stream(), which causes a segfault if you change
the TCP Follow screen to EBCDIC, and then go back and select a TCP packet.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1578 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/main.c

index 701f3a87bfb5f43eb8f9538f566fb88b3cc6805b..8883ecdb1d808a767282ede4af0edee799352a3a 100644 (file)
@@ -1,6 +1,6 @@
 /* main.c
  *
- * $Id: main.c,v 1.100 2000/01/25 17:57:31 gram Exp $
+ * $Id: main.c,v 1.101 2000/01/29 13:30:08 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -465,6 +465,7 @@ follow_read_stream(char *filename, guint8 show_type,
         "Error reading temporary file %s: %s", filename, strerror(errno));
     }
     fclose( data_out_file );
+    data_out_file = NULL;
   } else {
     simple_dialog(ESD_TYPE_WARN, NULL,
       "Could not open temporary file %s: %s", filename, strerror(errno));