diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-06-19 01:22:03 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-06-19 01:22:03 +0000 |
commit | e0cc9121abb310f2c8a8246658d5cd79f4feccec (patch) | |
tree | 910520fc6e0b2ac20fd9b08997576978558eab96 | |
parent | 9400764837193e7fe276ef0a55b74edc3c48a106 (diff) |
Initialize di.hf_index in dissect_dcerpc_cn_rqst(). Alan Hood sent me a
fuzz-generated packet that made it all the way to proto_registrar_get_name()
without hf_index being initialized.
svn path=/trunk/; revision=7899
-rw-r--r-- | packet-dcerpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-dcerpc.c b/packet-dcerpc.c index 7ee7260b7f..75e69f9162 100644 --- a/packet-dcerpc.c +++ b/packet-dcerpc.c @@ -2,7 +2,7 @@ * Routines for DCERPC packet disassembly * Copyright 2001, Todd Sabin <tas@webspan.net> * - * $Id: packet-dcerpc.c,v 1.130 2003/06/17 05:29:45 tpot Exp $ + * $Id: packet-dcerpc.c,v 1.131 2003/06/19 01:22:03 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2610,6 +2610,7 @@ dissect_dcerpc_cn_rqst (tvbuff_t *tvb, gint offset, packet_info *pinfo, di.smb_fid = get_smb_fid(pinfo->private_data); di.request = TRUE; di.call_data = value; + di.hf_index = -1; if(value->rep_frame!=0){ proto_tree_add_uint(dcerpc_tree, hf_dcerpc_response_in, |