aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nfs.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2016-01-07 23:17:00 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2016-01-08 12:12:21 +0000
commit8884edbbd686f70813183ad242f1b382f1cdd7e6 (patch)
treeff48e9f33a04fdf4c8e1512e2f807aa720d472e9 /epan/dissectors/packet-nfs.c
parent895d07f7be95419840d6f1fe852a4771fcc55626 (diff)
NFS: fix crash when activating file_name_snooping option
gf5340b2 introduced a value destroy function. When transfering a given value from nfs_name_snoop_unmatched to nfs_name_snoop_matched hash map, do not free the value automatically Bug: 11972 Change-Id: I8c4e0db07084b041baf73ccf4d0788248574a9d8 Reviewed-on: https://code.wireshark.org/review/13115 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-nfs.c')
-rw-r--r--epan/dissectors/packet-nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index 1351093ef0..50f79cbdae 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -1168,7 +1168,7 @@ nfs_name_snoop_add_fh(int xid, tvbuff_t *tvb, int fh_offset, int fh_length)
g_hash_table_remove(nfs_name_snoop_matched, key);
}
- g_hash_table_remove(nfs_name_snoop_unmatched, GINT_TO_POINTER(xid));
+ g_hash_table_steal(nfs_name_snoop_unmatched, GINT_TO_POINTER(xid));
g_hash_table_insert(nfs_name_snoop_matched, key, nns);
}