From: Adam Dickmeiss Date: Fri, 14 Oct 2011 10:30:21 +0000 (+0200) Subject: Avoid work on bad metadata (0 prt ref) X-Git-Tag: v1.6.4~5^2~5 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=e036e324092058ab02d0aefba529c943e39d483b;p=pazpar2-moved-to-github.git Avoid work on bad metadata (0 prt ref) Problem introduced in commit 9d9593. --- diff --git a/src/session.c b/src/session.c index 9de7ed9..1be728f 100644 --- a/src/session.c +++ b/src/session.c @@ -1667,6 +1667,9 @@ static int ingest_to_cluster(struct client *cl, // merged metadata rec_md = record_metadata_init(se->nmem, (const char *) value, ser_md->type, 0); + if (!rec_md) + continue; + wheretoput = &cluster->metadata[md_field_id]; // and polulate with data: