From 1f4a67568ce9500c2ca977dd067b8408d09afa28 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 11 Oct 2012 11:24:13 +0200 Subject: [PATCH] obexd: Fix returning empty if messages was already listed Once a message was already listed and inserted on the cache it could not be listed again as the code was using the wrong key to lookup for found messages then once we try to create the message again it fails as the object already exists. --- obexd/client/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/client/map.c b/obexd/client/map.c index 46b787d12..dc72e4b3f 100644 --- a/obexd/client/map.c +++ b/obexd/client/map.c @@ -808,7 +808,7 @@ static void msg_element(GMarkupParseContext *ctxt, const gchar *element, break; } - msg = g_hash_table_lookup(data->messages, key); + msg = g_hash_table_lookup(data->messages, values[i]); if (msg == NULL) { msg = map_msg_create(data, values[i]); if (msg == NULL) -- 2.47.3