summaryrefslogtreecommitdiff
path: root/src/pq/pq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-04 15:28:43 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-04 15:28:43 +0000
commitc4a94f217f4685dcae58ad5a53efb310bf1324d1 (patch)
tree22adbf23344df7ac8d78a77858fb43e9cb32072c /src/pq/pq.c
parente745a26c9c236247300f2b8507158b8f21899063 (diff)
simplify PQ API by removing NULL as a possible acceptable value
Diffstat (limited to 'src/pq/pq.c')
-rw-r--r--src/pq/pq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pq/pq.c b/src/pq/pq.c
index 37d067edd..43186c41e 100644
--- a/src/pq/pq.c
+++ b/src/pq/pq.c
@@ -151,11 +151,9 @@ GNUNET_PQ_extract_result (PGresult *result,
&spec->dst_size,
spec->dst);
if (GNUNET_SYSERR == ret)
- return GNUNET_SYSERR;
- if (GNUNET_NO == ret)
{
- had_null = GNUNET_YES;
- continue;
+ GNUNET_PQ_cleanup_result (rs);
+ return GNUNET_SYSERR;
}
if (NULL != spec->result_size)
*spec->result_size = spec->dst_size;