summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-12-02 16:52:35 -0500
committerEvan Huus <eapache@gmail.com>2015-12-03 02:00:18 +0000
commitcda450ed591d73aab366569eb748659f194e7168 (patch)
treeeadf9b7c87e66fd8be09788f6eb82ec7aafda85f /ui
parentde87db6170f68ba6bb7e6859365c16deefc3864d (diff)
downloadwireshark-cda450ed591d73aab366569eb748659f194e7168.tar.gz
Fix address hashing broken in g4f39c60
We actually have to *use* the return value of the method, which the macro did for us. Change-Id: I240ca7e526a18054fe39c6c4ded902998dc2fef0 Reviewed-on: https://code.wireshark.org/review/12389 Petri-Dish: Evan Huus <eapache@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com> Reviewed-by: Jim Young <jim.young.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/conversation_hastables_dlg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/conversation_hastables_dlg.c b/ui/gtk/conversation_hastables_dlg.c
index 88951083fd..1e2df8cfc8 100644
--- a/ui/gtk/conversation_hastables_dlg.c
+++ b/ui/gtk/conversation_hastables_dlg.c
@@ -57,9 +57,9 @@ conversation_hash_exact(gconstpointer v)
hash_val = 0;
#if 0
- add_address_to_hash(hash_val, &key->addr1);
+ hash_val = add_address_to_hash(hash_val, &key->addr1);
hash_val += key->port1;
- add_address_to_hash(hash_val, &key->addr2);
+ hash_val = add_address_to_hash(hash_val, &key->addr2);
hash_val += key->port2;
return hash_val;
@@ -106,9 +106,9 @@ conversation_hash_exact_old(gconstpointer v)
guint hash_val;
hash_val = 0;
- add_address_to_hash(hash_val, &key->addr1);
+ hash_val = add_address_to_hash(hash_val, &key->addr1);
hash_val += key->port1;
- add_address_to_hash(hash_val, &key->addr2);
+ hash_val = add_address_to_hash(hash_val, &key->addr2);
hash_val += key->port2;
return hash_val;