From Ronnie Sahlberg: ONLY calculate RTT values for replies we have

actually seen the request packet for.

svn path=/trunk/; revision=6498
This commit is contained in:
Guy Harris 2002-10-25 01:02:49 +00:00
parent f54f6a1a0a
commit 75c2155cad
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/* tap-dcerpcstat.c
* dcerpcstat 2002 Ronnie Sahlberg
*
* $Id: tap-dcerpcstat.c,v 1.1 2002/10/23 03:49:10 guy Exp $
* $Id: tap-dcerpcstat.c,v 1.2 2002/10/25 01:02:49 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -68,6 +68,10 @@ dcerpcstat_packet(rpcstat_t *rs, packet_info *pinfo, dcerpc_info *ri)
if(!ri->call_data){
return 0;
}
if(!ri->call_data->req_frame){
/* we have not seen the request so we dont know the delta*/
return 0;
}
if(ri->call_data->opnum>=rs->num_procedures){
/* dont handle this since its outside of known table */
return 0;