[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 01/02: add extra checks
From: |
gnunet |
Subject: |
[taler-exchange] 01/02: add extra checks |
Date: |
Tue, 31 Mar 2020 15:13:06 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit f38a56d3ff706047b28c2986fc0941df55c80a44
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Mar 31 15:11:40 2020 +0200
add extra checks
---
src/mhd/mhd_parsing.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mhd/mhd_parsing.c b/src/mhd/mhd_parsing.c
index 21c215a2..fca54f3f 100644
--- a/src/mhd/mhd_parsing.c
+++ b/src/mhd/mhd_parsing.c
@@ -74,6 +74,7 @@ TALER_MHD_parse_post_json (struct MHD_Connection *connection,
switch (pr)
{
case GNUNET_JSON_PR_OUT_OF_MEMORY:
+ GNUNET_break (NULL == *json);
return (MHD_NO ==
TALER_MHD_reply_with_error
(connection,
@@ -82,12 +83,15 @@ TALER_MHD_parse_post_json (struct MHD_Connection
*connection,
"out of memory")) ? GNUNET_SYSERR : GNUNET_NO;
case GNUNET_JSON_PR_CONTINUE:
+ GNUNET_break (NULL == *json);
return GNUNET_YES;
case GNUNET_JSON_PR_REQUEST_TOO_LARGE:
+ GNUNET_break (NULL == *json);
return (MHD_NO ==
TALER_MHD_reply_request_too_large
(connection)) ? GNUNET_SYSERR : GNUNET_NO;
case GNUNET_JSON_PR_JSON_INVALID:
+ GNUNET_break (NULL == *json);
return (MHD_YES ==
TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
--
To stop receiving notification emails like this one, please contact
address@hidden.