[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -fix crash reported by sebas
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -fix crash reported by sebas |
Date: |
Wed, 17 May 2023 22:21:27 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 549e70fb -fix crash reported by sebas
549e70fb is described below
commit 549e70fbc14fc18db7f5fe9266e91b7d13818671
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed May 17 22:21:24 2023 +0200
-fix crash reported by sebas
---
src/backend/taler-merchant-httpd_helper.c | 8 ++++++++
src/bank/mb_parse.c | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/src/backend/taler-merchant-httpd_helper.c
b/src/backend/taler-merchant-httpd_helper.c
index 61b935f5..75639af6 100644
--- a/src/backend/taler-merchant-httpd_helper.c
+++ b/src/backend/taler-merchant-httpd_helper.c
@@ -177,6 +177,14 @@ TMH_accounts_array_valid (const json_t *accounts)
return false;
}
}
+ if ( (NULL == credit_facade_url) !=
+ (NULL == credit_facade_credentials) )
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "If credit_facade_url is given, credit_facade_credentials
must also be specified (violated for %s)\n",
+ uri);
+ return false;
+ }
if ( (NULL != credit_facade_url) ||
(NULL != credit_facade_credentials) )
{
diff --git a/src/bank/mb_parse.c b/src/bank/mb_parse.c
index c92dead4..275fdc92 100644
--- a/src/bank/mb_parse.c
+++ b/src/bank/mb_parse.c
@@ -137,6 +137,11 @@ TALER_MERCHANT_BANK_auth_parse_json (
auth->wire_gateway_url = GNUNET_strdup (backend_url);
method = json_string_value (json_object_get (cred,
"type"));
+ if (NULL == method)
+ {
+ GNUNET_break_op (0);
+ return GNUNET_SYSERR;
+ }
for (unsigned int i = 0; NULL != methods[i].m; i++)
{
if (0 == strcasecmp (method,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: -fix crash reported by sebas,
gnunet <=