From aec433cecce7b9e53ac6af480659a575178dc61b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 19 Sep 2017 20:04:36 +0200 Subject: [PATCH] Additional check --- test/default/sodium_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/default/sodium_utils.c b/test/default/sodium_utils.c index 0eafd60c..6955feb8 100644 --- a/test/default/sodium_utils.c +++ b/test/default/sodium_utils.c @@ -146,8 +146,8 @@ main(void) printf("[%s]\n", b64_end); memset(buf1, '*', sizeof buf1); - sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), "\n\r ", &bin_len, - &b64_end, sodium_base64_VARIANT_ORIGINAL); + assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), "\n\r ", &bin_len, + &b64_end, sodium_base64_VARIANT_ORIGINAL) == 0); buf1[bin_len] = 0; printf("[%s]\n", (const char *) buf1); assert(*b64_end == 0);