diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-06-25 22:15:51 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-06-25 22:15:51 +0000 |
commit | c0c44cf9cd3d3e0648f357cb154a1397960e2144 (patch) | |
tree | e462acd6451141fbf238d785928c19f5b0684036 /epan/conversation.c | |
parent | 92c5fa6e4e6995507c662a5ea3290c2a888a912d (diff) |
from Kashyap Desai
fix bug in conversation_delete_proto_data
second argument to g_slist_remove() is a pointer to the data, not a GSlist containing a list of such pointers.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14755 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/conversation.c')
-rw-r--r-- | epan/conversation.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/conversation.c b/epan/conversation.c index 3911b9e682..d597a0f8c4 100644 --- a/epan/conversation.c +++ b/epan/conversation.c @@ -1114,8 +1114,10 @@ conversation_delete_proto_data(conversation_t *conv, int proto) item = g_slist_find_custom(conv->data_list, (gpointer *)&temp, p_compare); - if (item != NULL) - conv->data_list = g_slist_remove(conv->data_list, item); + while(item){ + conv->data_list = g_slist_remove(conv->data_list, item->data); + item=item->next; + } } void |