From: Christian Grothoff Date: Sat, 25 Jun 2016 17:30:47 +0000 (+0000) Subject: -fix bad check X-Git-Tag: initial-import-from-subversion-38251~695 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=094d82ff254a1497237f986ee81ddad936549c5a;p=oweals%2Fgnunet.git -fix bad check --- 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;