aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-07 06:58:17 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-07 06:58:17 +0000
commit7da2edcb2e27ce7709139670d81cbf82c41172af (patch)
treef1207d6df9903920996dadd82a3a25189fd7a38f /tethereal.c
parent3d446c2609101c0d582179d1052ca0049ff0453e (diff)
Don't hand "fdata" to "clear_fdata()" if you haven't filled it in.
svn path=/trunk/; revision=3266
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tethereal.c b/tethereal.c
index b1adb1c6f7..c340117018 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.76 2001/04/05 05:58:03 gram Exp $
+ * $Id: tethereal.c,v 1.77 2001/04/07 06:58:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1039,7 +1039,8 @@ wtap_dispatch_cb_write(u_char *user, const struct wtap_pkthdr *phdr, int offset,
proto_tree_free(protocol_tree);
if (edt != NULL)
epan_dissect_free(edt);
- clear_fdata(&fdata);
+ if (cf->rfcode)
+ clear_fdata(&fdata);
}
static void