[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix NPE
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix NPE |
Date: |
Wed, 06 Jun 2018 09:58:13 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 122caec56 fix NPE
122caec56 is described below
commit 122caec56d618d8d86d1fa83ddb38b2a6586c7c4
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Jun 6 09:58:08 2018 +0200
fix NPE
---
src/gns/gnunet-gns-proxy.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index fb02295c8..cf1901de1 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -1965,7 +1965,7 @@ create_response (void *cls,
us = MHD_lookup_connection_value (con,
MHD_HEADER_KIND,
MHD_HTTP_HEADER_CONTENT_LENGTH);
- if ( (1 == sscanf (us,
+ if ( (NULL != us) && (1 == sscanf (us,
"%ld",
&upload_size)) &&
(upload_size >= 0) )
@@ -1973,6 +1973,10 @@ create_response (void *cls,
curl_easy_setopt (s5r->curl,
CURLOPT_INFILESIZE,
upload_size);
+ } else {
+ curl_easy_setopt (s5r->curl,
+ CURLOPT_INFILESIZE,
+ upload_size);
}
}
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix NPE,
gnunet <=