From: Adam Dickmeiss Date: Wed, 10 Sep 2014 11:14:45 +0000 (+0000) Subject: Fix SEGV: connection_get_link PAZ-965 X-Git-Tag: v1.7.5~3 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=62747ed9d1e5d4e2fb63f9072c54d30200a99e21 Fix SEGV: connection_get_link PAZ-965 --- 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); } }