From 094d82ff254a1497237f986ee81ddad936549c5a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 25 Jun 2016 17:30:47 +0000 Subject: [PATCH] -fix bad check --- src/identity/identity_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 3c8dc49b1..598f6085f 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c @@ -311,7 +311,7 @@ check_identity_result_code (void *cls, if (0 == size) return GNUNET_OK; - if ('\0' != str[size - sizeof (*rcm) - 1]) + if ('\0' != str[size - 1]) { GNUNET_break (0); return GNUNET_SYSERR; -- 2.25.1