diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-06 14:30:34 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-06 14:30:34 +0000 |
commit | 487227f9cca6b1bd17d08c8d014a29be1e7b4d25 (patch) | |
tree | 24f747d274b0802dbbe2fc9378ce94c32e4a692e /epan/dissectors/packet-nlm.c | |
parent | ef70629d03cc1bbb9c0e9389d98b883327441f1b (diff) |
get rid of another slow hashtable and one global variable and
replace it with a better and memleak free se_tree
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17480 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-nlm.c')
-rw-r--r-- | epan/dissectors/packet-nlm.c | 20 |
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); } } |