diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-11-01 01:11:59 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-11-01 01:11:59 +0000 |
commit | 42e00655522d8338f012f7da388d058d5d9cf7e2 (patch) | |
tree | 58f4a052f7cd7064ca4a41d60e0e79d7bea34a7d /tap-rpcstat.c | |
parent | 422596a0fecf9dd9100d716c4dab4f3ea51e3655 (diff) | |
download | wireshark-42e00655522d8338f012f7da388d058d5d9cf7e2.tar.gz |
Fix for small bug that crashed tethereal if a tap filter was applied and tethereal forgot to tell epan_dissect_new() to build a tree
svn path=/trunk/; revision=6529
Diffstat (limited to 'tap-rpcstat.c')
-rw-r--r-- | tap-rpcstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tap-rpcstat.c b/tap-rpcstat.c index 069baa4b39..acfcd25d14 100644 --- a/tap-rpcstat.c +++ b/tap-rpcstat.c @@ -1,7 +1,7 @@ /* tap-rpcstat.c * rpcstat 2002 Ronnie Sahlberg * - * $Id: tap-rpcstat.c,v 1.5 2002/10/31 22:16:01 guy Exp $ + * $Id: tap-rpcstat.c,v 1.6 2002/11/01 01:11:59 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -286,6 +286,7 @@ rpcstat_init(char *optarg) int pos=0; char *filter=NULL; + if(sscanf(optarg,"rpc,rtt,%d,%d,%n",&program,&version,&pos)==2){ if(pos){ filter=optarg+pos; @@ -297,7 +298,6 @@ rpcstat_init(char *optarg) exit(1); } - rs=g_malloc(sizeof(rpcstat_t)); rs->prog=rpc_prog_name(program); rs->program=program; |