convert conversation_api_call.c
[oweals/gnunet.git] / src / pq / pq.c
index 37d067edd8c30524039bbd68cb571d684652c547..43186c41e7142d8f4db60d6b14ac6a8c2816c181 100644 (file)
@@ -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;