aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nlm.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-06 14:30:34 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-06 14:30:34 +0000
commit07c2845fe77fd2fe38733d39223d6f8b76b78f04 (patch)
tree24f747d274b0802dbbe2fc9378ce94c32e4a692e /epan/dissectors/packet-nlm.c
parent51f8a228f629e9c391a03eb3278a248cee66cff2 (diff)
get rid of another slow hashtable and one global variable and
replace it with a better and memleak free se_tree svn path=/trunk/; revision=17480
Diffstat (limited to 'epan/dissectors/packet-nlm.c')
-rw-r--r--epan/dissectors/packet-nlm.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/epan/dissectors/packet-nlm.c b/epan/dissectors/packet-nlm.c
index 457dfae9cb..fd8816ccf1 100644
--- a/epan/dissectors/packet-nlm.c
+++ b/epan/dissectors/packet-nlm.c
@@ -230,14 +230,8 @@ nlm_match_fhandle_reply(packet_info *pinfo, proto_tree *tree)
md=g_hash_table_lookup(nlm_msg_res_matched, GINT_TO_POINTER(pinfo->fd->num));
if(md && md->rep_frame){
- nfs_fhandle_data_t *fhd;
- fhd=(nfs_fhandle_data_t *)g_hash_table_lookup(
- nfs_fhandle_frame_table,
- GINT_TO_POINTER(md->req_frame));
- if(fhd){
- dissect_fhandle_hidden(pinfo,
- tree, fhd);
- }
+ dissect_fhandle_hidden(pinfo,
+ tree, md->req_frame);
}
}
static void
@@ -247,14 +241,8 @@ nlm_match_fhandle_request(packet_info *pinfo, proto_tree *tree)
md=g_hash_table_lookup(nlm_msg_res_matched, GINT_TO_POINTER(pinfo->fd->num));
if(md && md->rep_frame){
- nfs_fhandle_data_t *fhd;
- fhd=(nfs_fhandle_data_t *)g_hash_table_lookup(
- nfs_fhandle_frame_table,
- GINT_TO_POINTER(md->rep_frame));
- if(fhd){
- dissect_fhandle_hidden(pinfo,
- tree, fhd);
- }
+ dissect_fhandle_hidden(pinfo,
+ tree, md->rep_frame);
}
}