diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-05 10:13:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-05 10:13:13 +0200 |
commit | 360fa41773651f9592c440d8fefe7748e6f1a1ce (patch) | |
tree | 5cbb3dc22a3079016a4bf87e66beb64d85a4bc8d | |
parent | 1cc9d829c0add9533f1bb7fab59c32a7328086d0 (diff) |
follow twister change e01669953d7a8e82a505fca2308e57e971d43c67: check return value on upload_cb registration with curl
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 7 |
1 files 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); |