commit dea6f80d6d7db69a80c8dcefa9ae1af6bd16cb5b
parent aab2c5162f559c7c8489e6996d488266cbcec6dc
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 30 Apr 2025 20:26:51 +0200
fix read of uninitialized variable
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/challenger/challenger-httpd_challenge.c b/src/challenger/challenger-httpd_challenge.c
@@ -415,7 +415,7 @@ send_tan (struct ChallengeContext *bc)
GNUNET_asprintf (&cmsg,
"PIN: %u",
(unsigned int) bc->tan);
- msg_len = strlen (msg);
+ msg_len = strlen (cmsg);
msg = cmsg;
}
{
@@ -767,7 +767,7 @@ CH_handler_challenge (struct CH_HandlerContext *hc,
return reply_error (bc,
"internal-error",
MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_STORE_FAILED,
+ TALER_EC_GENERIC_DB_FETCH_FAILED,
"validation-get");
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
GNUNET_break_op (0);