From: Adam Dickmeiss Date: Wed, 17 Apr 2013 11:28:51 +0000 (+0200) Subject: Fix NULL ptr reference of se->relevance X-Git-Tag: v1.6.30~14 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=538abdde82f2a1c8f5ce6f27c8ee0e0f71e989a7;p=pazpar2-moved-to-github.git Fix NULL ptr reference of se->relevance If a new search is initiated and a CCL query fails to parse, then session->relevance becomes NULL. --- diff --git a/src/session.c b/src/session.c index 5e39968..5ad2694 100644 --- a/src/session.c +++ b/src/session.c @@ -1675,7 +1675,7 @@ int ingest_record(struct client *cl, const char *rec, return -1; } session_enter(se, "ingest_record"); - if (client_get_session(cl) == se) + if (client_get_session(cl) == se && se->relevance) ret = ingest_to_cluster(cl, xdoc, root, record_no, mergekey_norm); session_leave(se, "ingest_record");