diff options
Diffstat (limited to 'epan/conversation.c')
-rw-r--r-- | epan/conversation.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/conversation.c b/epan/conversation.c index 0ceeda483e..1164769c79 100644 --- a/epan/conversation.c +++ b/epan/conversation.c @@ -637,7 +637,7 @@ conversation_new(const guint32 setup_frame, const address *addr1, const address } } - new_key = se_alloc(sizeof(struct conversation_key)); + new_key = se_new(struct conversation_key); new_key->next = conversation_keys; conversation_keys = new_key; SE_COPY_ADDRESS(&new_key->addr1, addr1); @@ -750,7 +750,7 @@ conversation_lookup_hashtable(GHashTable *hashtable, const guint32 frame_num, co key.port1 = port1; key.port2 = port2; - chain_head = g_hash_table_lookup(hashtable, &key); + chain_head = (conversation_t *)g_hash_table_lookup(hashtable, &key); if (chain_head && (chain_head->setup_frame <= frame_num)) { match = chain_head; @@ -1135,7 +1135,7 @@ p_compare(gconstpointer a, gconstpointer b) void conversation_add_proto_data(conversation_t *conv, const int proto, void *proto_data) { - conv_proto_data *p1 = se_alloc(sizeof(conv_proto_data)); + conv_proto_data *p1 = se_new(conv_proto_data); p1->proto = proto; p1->proto_data = proto_data; |