diff options
author | Gabor X Toth <*@tg-x.net> | 2016-10-12 19:58:22 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-10-12 19:58:22 +0000 |
commit | d6c75f855dad02aeb5e6a4aab5278a2340f70f80 (patch) | |
tree | ef55362ef8e45d59a3ba468896b911b92f959d5c /src/pq | |
parent | cb1ae526f2eb09e18f403cf1a91d9776aa5b4d51 (diff) | |
download | gnunet-d6c75f855dad02aeb5e6a4aab5278a2340f70f80.tar.gz gnunet-d6c75f855dad02aeb5e6a4aab5278a2340f70f80.zip |
pq: fix crash in clean_varsize_blob() after extracting NULL value
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_result_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, | |||
70 | void *idst; | 70 | void *idst; |
71 | int fnum; | 71 | int fnum; |
72 | 72 | ||
73 | *dst_size = 0; | ||
74 | *((void **) dst) = NULL; | ||
75 | |||
73 | fnum = PQfnumber (result, | 76 | fnum = PQfnumber (result, |
74 | fname); | 77 | fname); |
75 | if (fnum < 0) | 78 | if (fnum < 0) |