From: Adam Dickmeiss Date: Thu, 19 Jan 2012 14:26:27 +0000 (+0100) Subject: Fix SEGV that occurred for failed connections X-Git-Tag: v1.6.9~3 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=5ed2c5a6dfed76a94fdfb4fb2853267ef2688ce7;p=pazpar2-moved-to-github.git Fix SEGV that occurred for failed connections --- diff --git a/src/session.c b/src/session.c index fcf29fa..6dce5d9 100644 --- a/src/session.c +++ b/src/session.c @@ -747,7 +747,7 @@ enum pazpar2_error_code session_search(struct session *se, session_log(se, YLOG_LOG, "client REUSE %s", client_get_id(cl)); client_reingest(cl); } - else + else if (r) { session_log(se, YLOG_LOG, "client NEW %s", client_get_id(cl)); client_start_search(cl);