From: Christian Grothoff Date: Tue, 5 Jun 2018 08:13:13 +0000 (+0200) Subject: follow twister change e01669953d7a8e82a505fca2308e57e971d43c67: check return value... X-Git-Tag: v0.11.0pre66~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=360fa41773651f9592c440d8fefe7748e6f1a1ce;p=oweals%2Fgnunet.git follow twister change e01669953d7a8e82a505fca2308e57e971d43c67: check return value on upload_cb registration with curl --- diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index e4fa5cc10..918c1d110 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -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);