From c4a94f217f4685dcae58ad5a53efb310bf1324d1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 4 Apr 2016 15:28:43 +0000 Subject: simplify PQ API by removing NULL as a possible acceptable value --- src/pq/pq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/pq/pq.c') 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; -- cgit v1.2.3