From: Gabor X Toth <*@tg-x.net> Date: Wed, 12 Oct 2016 19:58:22 +0000 (+0000) Subject: pq: fix crash in clean_varsize_blob() after extracting NULL value X-Git-Tag: initial-import-from-subversion-38251~110 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d6c75f855dad02aeb5e6a4aab5278a2340f70f80;p=oweals%2Fgnunet.git pq: fix crash in clean_varsize_blob() after extracting NULL value --- diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c index 78a375060..180c5fc18 100644 --- a/src/pq/pq_result_helper.c +++ b/src/pq/pq_result_helper.c @@ -70,6 +70,9 @@ extract_varsize_blob (void *cls, void *idst; int fnum; + *dst_size = 0; + *((void **) dst) = NULL; + fnum = PQfnumber (result, fname); if (fnum < 0)