-fix bad check
authorChristian Grothoff <christian@grothoff.org>
Sat, 25 Jun 2016 17:30:47 +0000 (17:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 25 Jun 2016 17:30:47 +0000 (17:30 +0000)
src/identity/identity_api.c

index 3c8dc49b1f62880a0b8de4c4ffdca02469544443..598f6085f4d5af4b96c736dcedaf2f184679d054 100644 (file)
@@ -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;