diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-11-24 18:25:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-11-24 18:25:23 +0000 |
commit | d3fed959bc25c2685cd726e4768524baa33bbefd (patch) | |
tree | 7896a15850a8f74e69b9426974b4759a0d50d584 /tap-protocolinfo.c | |
parent | 5f755468eea937fabbc073c4958b821866e90bef (diff) |
Have separate proto_construct_match_selected_string() and
proto_can_match_selected() routines, to more clearly separate the two
functions - but have them both call the same underlying routine, so
they both make the same decisions as to whether a match-selected string
can be constructed or not.
svn path=/trunk/; revision=19976
Diffstat (limited to 'tap-protocolinfo.c')
-rw-r--r-- | tap-protocolinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tap-protocolinfo.c b/tap-protocolinfo.c index 0c9f8fbfc4..dfaea88099 100644 --- a/tap-protocolinfo.c +++ b/tap-protocolinfo.c @@ -76,7 +76,8 @@ protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const vo } for(i=0;i<gp->len;i++){ - if(proto_construct_match_selected_string(gp->pdata[i], NULL, &str)){ + str=proto_construct_match_selected_string(gp->pdata[i], NULL); + if(str){ col_append_fstr(pinfo->cinfo, COL_INFO, " %s",str); } } |