aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-25 17:30:47 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-25 17:30:47 +0000
commit094d82ff254a1497237f986ee81ddad936549c5a (patch)
treec6eac0d3a5f3e9b8e799238b663dcbe99350ea81 /src/identity/identity_api.c
parentbdcff09ee219e8b301e63abecd758753c394ad5b (diff)
downloadgnunet-094d82ff254a1497237f986ee81ddad936549c5a.tar.gz
gnunet-094d82ff254a1497237f986ee81ddad936549c5a.zip
-fix bad check
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c2
1 files changed, 1 insertions, 1 deletions
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,
311 311
312 if (0 == size) 312 if (0 == size)
313 return GNUNET_OK; 313 return GNUNET_OK;
314 if ('\0' != str[size - sizeof (*rcm) - 1]) 314 if ('\0' != str[size - 1])
315 { 315 {
316 GNUNET_break (0); 316 GNUNET_break (0);
317 return GNUNET_SYSERR; 317 return GNUNET_SYSERR;