From 5ed2c5a6dfed76a94fdfb4fb2853267ef2688ce7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 19 Jan 2012 15:26:27 +0100 Subject: [PATCH] Fix SEGV that occurred for failed connections --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.7.10.4