aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/curl/curl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/curl/curl.c b/src/curl/curl.c
index cdd39ab8e..a0a027995 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/ 17*/
@@ -411,8 +411,9 @@ download_get_result (struct DownloadBuffer *db,
411 GNUNET_break (0); 411 GNUNET_break (0);
412 *response_code = 0; 412 *response_code = 0;
413 } 413 }
414 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 414 if (0 != db->buf_size)
415 "Did NOT detect response as JSON\n"); 415 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
416 "Did NOT detect response as JSON\n");
416 return NULL; 417 return NULL;
417 } 418 }
418 json = NULL; 419 json = NULL;