summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_trait_reserve_pub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_trait_reserve_pub.c')
-rw-r--r--src/testing/testing_api_trait_reserve_pub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testing/testing_api_trait_reserve_pub.c b/src/testing/testing_api_trait_reserve_pub.c
index a158114b..743a10e9 100644
--- a/src/testing/testing_api_trait_reserve_pub.c
+++ b/src/testing/testing_api_trait_reserve_pub.c
@@ -45,6 +45,8 @@ TALER_TESTING_get_trait_reserve_pub
unsigned int index,
const struct TALER_ReservePublicKeyP **reserve_pub)
{
+ if (NULL == cmd->traits)
+ return GNUNET_SYSERR;
return cmd->traits (cmd->cls,
(const void **) reserve_pub,
TALER_TESTING_TRAIT_RESERVE_PUBLIC_KEY,