fix major initialization issue in datacache postgres plugin
authorChristian Grothoff <christian@grothoff.org>
Thu, 4 Jan 2018 21:29:52 +0000 (22:29 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 4 Jan 2018 21:29:52 +0000 (22:29 +0100)
src/datacache/plugin_datacache_postgres.c

index 2fe6498a5149c8d9cd65014e637c5c4792a010a3..2c233c4c21cdd82e93f7aed8b3b4bf9ae4fd3a5d 100644 (file)
@@ -538,6 +538,14 @@ extract_result_cb (void *cls,
       GNUNET_PQ_result_spec_end
     };
 
+    if (GNUNET_YES !=
+        GNUNET_PQ_extract_result (result,
+                                  rs,
+                                  i))
+    {
+      GNUNET_break (0);
+      return;
+    }
     if (0 != (path_len % sizeof (struct GNUNET_PeerIdentity)))
     {
       GNUNET_break (0);