aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorThomas Chen <funorpain@gmail.com>2017-12-29 21:26:42 +0800
committerPascal Quantin <pascal.quantin@gmail.com>2017-12-30 07:25:56 +0000
commit998507d327b9c57d5b3a9627bc5a1dcd40e4756d (patch)
treeb09ff982da9897ce776e472fed0511b9fb3260c4 /epan
parentea8d0c51b3a7ec0331e7c09c45a8d05267f6163a (diff)
proto_data.c: Fix bug in p_remove_proto_data.
Change-Id: I44654b1aa6f513a0bccb88cba3181f5c52073832 Reviewed-on: https://code.wireshark.org/review/25065 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/proto_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto_data.c b/epan/proto_data.c
index 597ab74b10..92411328ec 100644
--- a/epan/proto_data.c
+++ b/epan/proto_data.c
@@ -132,7 +132,7 @@ p_remove_proto_data(wmem_allocator_t *scope, struct _packet_info* pinfo, int pro
temp.proto_data = NULL;
if (scope == pinfo->pool) {
- item = g_slist_find_custom(pinfo->fd->pfd, &temp, p_compare);
+ item = g_slist_find_custom(pinfo->proto_data, &temp, p_compare);
proto_list = &pinfo->proto_data;
} else if (scope == wmem_file_scope()) {
item = g_slist_find_custom(pinfo->fd->pfd, &temp, p_compare);