follow twister change e01669953d7a8e82a505fca2308e57e971d43c67: check return value...
authorChristian Grothoff <christian@grothoff.org>
Tue, 5 Jun 2018 08:13:13 +0000 (10:13 +0200)
committerChristian Grothoff <christian@grothoff.org>
Tue, 5 Jun 2018 08:13:13 +0000 (10:13 +0200)
src/gns/gnunet-gns-proxy.c

index e4fa5cc109b534353b772fb3bb460b2b47795896..918c1d110ea77aa59260ee9f77507343db36f582 100644 (file)
@@ -1914,9 +1914,10 @@ create_response (void *cls,
       curl_easy_setopt (s5r->curl,
                        CURLOPT_WRITEDATA,
                        s5r);
-      curl_easy_setopt (s5r->curl,
-                       CURLOPT_READFUNCTION,
-                       &curl_upload_cb);
+      GNUNET_assert (CURLE_OK ==
+                    curl_easy_setopt (s5r->curl,
+                                      CURLOPT_READFUNCTION,
+                                      &curl_upload_cb));
       curl_easy_setopt (s5r->curl,
                        CURLOPT_READDATA,
                        s5r);