From 7da2edcb2e27ce7709139670d81cbf82c41172af Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 7 Apr 2001 06:58:17 +0000 Subject: [PATCH] Don't hand "fdata" to "clear_fdata()" if you haven't filled it in. svn path=/trunk/; revision=3266 --- tethereal.c | 5 +++-- 1 file 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 @@ -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