aboutsummaryrefslogtreecommitdiffstats
path: root/epan/conversation.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-06-16 20:59:52 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-06-16 20:59:52 -0400
commit3e012e2a87d8c7acd02c143d4fbeaba47709858c (patch)
tree2d321325f89bb024bc3fddc5d8ba7b72e3e9ea1b /epan/conversation.c
parentbd6808c4a00208541859426de7bc1e34935bb28d (diff)
epan: Finish converting endpoint_by_id to elements
Since the endpoint_by_id code uses elements and not the old endpoint structure, it shouldn't set pinfo->use_endpoint to TRUE when creating, and it should check if pinfo->conv_elements is NULL, not pinfo->conv_endpoint.
Diffstat (limited to 'epan/conversation.c')
-rw-r--r--epan/conversation.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/conversation.c b/epan/conversation.c
index 851f333521..036b7cd281 100644
--- a/epan/conversation.c
+++ b/epan/conversation.c
@@ -1784,14 +1784,12 @@ conversation_create_endpoint_by_id(struct _packet_info *pinfo, endpoint_type ety
pinfo->conv_elements[1].uint_val = id;
pinfo->conv_elements[1].type = CE_ENDPOINT;
pinfo->conv_elements[1].endpoint_type_val = etype;
-
- pinfo->use_endpoint = TRUE;
}
guint32
conversation_get_endpoint_by_id(struct _packet_info *pinfo, endpoint_type etype, const guint options)
{
- if (pinfo->conv_endpoint == NULL) {
+ if (pinfo->conv_elements == NULL) {
return 0;
}