From: Adam Dickmeiss Date: Fri, 23 Apr 2010 13:33:31 +0000 (+0200) Subject: Read co->client only when co is locked X-Git-Tag: v1.4.0~18 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=3fe6e057c6fbe85ead57eae7f378c755cbf2e6e2;hp=1498181abb059f78afc0ad4f7bcea0b5c13c7964;p=pazpar2-moved-to-github.git Read co->client only when co is locked --- diff --git a/src/connection.c b/src/connection.c index f1c19ec..4ca648e 100644 --- a/src/connection.c +++ b/src/connection.c @@ -239,10 +239,11 @@ void connection_continue(struct connection *co) static void connection_handler(IOCHAN iochan, int event) { struct connection *co = iochan_getdata(iochan); - struct client *cl = co->client; + struct client *cl; struct host *host = co->host; yaz_mutex_enter(host->mutex); + cl = co->client; if (!cl) { /* no client associated with it.. We are probably getting