dnsproxy: Fix hash table comparison function to avoid crash
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 27 Nov 2012 11:48:30 +0000 (13:48 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 27 Nov 2012 14:06:36 +0000 (16:06 +0200)
src/dnsproxy.c

index 5e06a97eb82d0b6ecfe8b46e464147b66113761c..ce6190950072ecc2a9ce33a88eabea55548b7f92 100644 (file)
@@ -2974,7 +2974,7 @@ int __connman_dnsproxy_init(void)
 
        srandom(time(NULL));
 
-       listener_table = g_hash_table_new_full(g_direct_hash, g_str_equal,
+       listener_table = g_hash_table_new_full(g_direct_hash, g_direct_equal,
                                                        NULL, g_free);
 
        index = connman_inet_ifindex("lo");