summaryrefslogtreecommitdiff
path: root/epan/frame_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/frame_data.c')
-rw-r--r--epan/frame_data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/frame_data.c b/epan/frame_data.c
index 4d150f1a27..097e6ede92 100644
--- a/epan/frame_data.c
+++ b/epan/frame_data.c
@@ -66,7 +66,7 @@ p_add_proto_data(frame_data *fd, int proto, guint8 key, void *proto_data)
frame_proto_data *p1 = (frame_proto_data *)wmem_alloc(wmem_file_scope(), sizeof(frame_proto_data));
p1->proto = proto;
- p1->proto = key;
+ p1->key = key;
p1->proto_data = proto_data;
/* Add it to the GSLIST */
@@ -83,7 +83,7 @@ p_get_proto_data(frame_data *fd, int proto, guint8 key)
GSList *item;
temp.proto = proto;
- temp.proto = key;
+ temp.key = key;
temp.proto_data = NULL;
item = g_slist_find_custom(fd->pfd, (gpointer *)&temp, p_compare);
@@ -104,7 +104,7 @@ p_remove_proto_data(frame_data *fd, int proto, guint8 key)
GSList *item;
temp.proto = proto;
- temp.proto = key;
+ temp.key = key;
temp.proto_data = NULL;
item = g_slist_find_custom(fd->pfd, (gpointer *)&temp, p_compare);