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 /src | |
parent | 1cc9d829c0add9533f1bb7fab59c32a7328086d0 (diff) | |
download | gnunet-360fa41773651f9592c440d8fefe7748e6f1a1ce.tar.gz gnunet-360fa41773651f9592c440d8fefe7748e6f1a1ce.zip |
follow twister change e01669953d7a8e82a505fca2308e57e971d43c67: check return value on upload_cb registration with curl
Diffstat (limited to 'src')
-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 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, | |||
1914 | curl_easy_setopt (s5r->curl, | 1914 | curl_easy_setopt (s5r->curl, |
1915 | CURLOPT_WRITEDATA, | 1915 | CURLOPT_WRITEDATA, |
1916 | s5r); | 1916 | s5r); |
1917 | curl_easy_setopt (s5r->curl, | 1917 | GNUNET_assert (CURLE_OK == |
1918 | CURLOPT_READFUNCTION, | 1918 | curl_easy_setopt (s5r->curl, |
1919 | &curl_upload_cb); | 1919 | CURLOPT_READFUNCTION, |
1920 | &curl_upload_cb)); | ||
1920 | curl_easy_setopt (s5r->curl, | 1921 | curl_easy_setopt (s5r->curl, |
1921 | CURLOPT_READDATA, | 1922 | CURLOPT_READDATA, |
1922 | s5r); | 1923 | s5r); |