From Greg Morris: get the request data before using it, if we don't

already have it.

svn path=/trunk/; revision=8523
This commit is contained in:
Guy Harris 2003-09-23 22:04:02 +00:00
parent 3f3a250980
commit 88b1bc3fac
1 changed files with 16 additions and 1 deletions

View File

@ -11,7 +11,7 @@
* Portions Copyright (c) Gilbert Ramirez 2000-2002
* Portions Copyright (c) Novell, Inc. 2000-2003
*
* $Id: packet-ncp2222.inc,v 1.61 2003/09/23 18:22:19 guy Exp $
* $Id: packet-ncp2222.inc,v 1.62 2003/09/23 22:04:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -4573,6 +4573,21 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
field_info *finfo;
int info_type;
if (!request_value)
{
conversation = find_conversation(&pinfo->src, &pinfo->dst,
PT_NCP, nw_connection, nw_connection, 0);
if (conversation != NULL) {
/* find the record telling us the request made that caused
this reply */
request_value = ncp_hash_lookup(conversation, sequence);
}
if (!conversation || !request_value)
{
return;
}
}
parray = proto_get_finfo_ptr_array(ncp_tree,
*ncp_rec->req_info_str->hf_ptr);
len = g_ptr_array_len(parray);