aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-03 11:34:38 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-03 23:28:08 +0200
commit6a1649f62ff9d8f49694fd34239fb1d62e6dc654 (patch)
tree0f7f8f6ecf1429319534165a3a158a643ba4337b /src/lib
parent4f17b17fe35153daaa40a97a952d5da58fa3a18a (diff)
check rval
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/testing_api_cmd_status.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/lib/testing_api_cmd_status.c b/src/lib/testing_api_cmd_status.c
index 8e9290f6d..40c8c550b 100644
--- a/src/lib/testing_api_cmd_status.c
+++ b/src/lib/testing_api_cmd_status.c
@@ -183,18 +183,22 @@ status_run (void *cls,
&transfer_subject))
{
GNUNET_break (0);
- TALER_LOG_ERROR
- ("The reserve has neither a priv nor a subject line..\n");
+ TALER_LOG_ERROR ("The reserve has neither a priv nor a subject line.\n");
TALER_TESTING_interpreter_fail (is);
return;
-
}
- GNUNET_STRINGS_string_to_data
- (transfer_subject,
- strlen (transfer_subject),
- &reserve_pub.eddsa_pub,
- sizeof (struct TALER_ReservePublicKeyP));
+ if (GNUNET_OK !=
+ GNUNET_STRINGS_string_to_data (transfer_subject,
+ strlen (transfer_subject),
+ &reserve_pub.eddsa_pub,
+ sizeof (struct TALER_ReservePublicKeyP)))
+ {
+ GNUNET_break (0);
+ TALER_LOG_ERROR ("Transfer subject is not a public key.\n");
+ TALER_TESTING_interpreter_fail (is);
+ return;
+ }
}
ss->rsh = TALER_EXCHANGE_reserve_status (is->exchange,