From 62747ed9d1e5d4e2fb63f9072c54d30200a99e21 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 10 Sep 2014 11:14:45 +0000 Subject: [PATCH] Fix SEGV: connection_get_link PAZ-965 --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index 723f8be..9af8c2b 100644 --- a/src/client.c +++ b/src/client.c @@ -1151,7 +1151,9 @@ void client_set_connection(struct client *cl, struct connection *con) } else { + client_lock(cl); cl->connection = con; + client_unlock(cl); client_destroy(cl); } } -- 1.7.10.4