From e036e324092058ab02d0aefba529c943e39d483b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 14 Oct 2011 12:30:21 +0200 Subject: [PATCH] Avoid work on bad metadata (0 prt ref) Problem introduced in commit 9d9593. --- src/session.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- 1.7.10.4