[phodav] spice-webdavd: correct client hashtable lookup



commit 250f75315dc98ba98d203a401697b1e560a335e9
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Mon Feb 9 14:30:38 2015 +0100

    spice-webdavd: correct client hashtable lookup
    
    The hashtable uses client->id, and int64_{hash/equal} are accessed with
    pointer to int64 key.

 spice/spice-webdavd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
index 3eb11f4..64c22c8 100644
--- a/spice/spice-webdavd.c
+++ b/spice/spice-webdavd.c
@@ -265,7 +265,7 @@ remove_client (Client *client)
 {
   g_debug ("remove client %p", client);
 
-  g_hash_table_remove (clients, client->client_connection);
+  g_hash_table_remove (clients, &client->id);
 }
 
 typedef struct ReadData


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]