From 360fa41773651f9592c440d8fefe7748e6f1a1ce Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 5 Jun 2018 10:13:13 +0200 Subject: follow twister change e01669953d7a8e82a505fca2308e57e971d43c67: check return value on upload_cb registration with curl --- src/gns/gnunet-gns-proxy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index e4fa5cc109..918c1d110e 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); -- cgit v1.2.3-18-g5258