forked from osmocom/wireshark
Don't hand "fdata" to "clear_fdata()" if you haven't filled it in.
svn path=/trunk/; revision=3266
This commit is contained in:
parent
3d446c2609
commit
7da2edcb2e
|
@ -1,6 +1,6 @@
|
||||||
/* tethereal.c
|
/* 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
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@zing.org>
|
* 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);
|
proto_tree_free(protocol_tree);
|
||||||
if (edt != NULL)
|
if (edt != NULL)
|
||||||
epan_dissect_free(edt);
|
epan_dissect_free(edt);
|
||||||
clear_fdata(&fdata);
|
if (cf->rfcode)
|
||||||
|
clear_fdata(&fdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue