aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-22 12:33:38 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-22 12:33:38 +0000
commit51191c78817e2634f52584b6830e4d792c239670 (patch)
treec8f0af6729b1bdf6dba516bfc8113b7e5be8c7fc /src
parentdbaa8e25ee25e32786f202fabe7542459dee03e2 (diff)
downloadgnunet-51191c78817e2634f52584b6830e4d792c239670.tar.gz
gnunet-51191c78817e2634f52584b6830e4d792c239670.zip
- null check
Diffstat (limited to 'src')
-rw-r--r--src/namestore/namestore_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c
index 023f20f43..0b6f4eb93 100644
--- a/src/namestore/namestore_common.c
+++ b/src/namestore/namestore_common.c
@@ -286,10 +286,11 @@ GNUNET_NAMESTORE_create_signature (const struct GNUNET_CRYPTO_RsaPrivateKey *key
286int 286int
287GNUNET_NAMESTORE_check_name (const char * name) 287GNUNET_NAMESTORE_check_name (const char * name)
288{ 288{
289 int res = GNUNET_OK; 289 if (name == NULL)
290 return GNUNET_SYSERR;
290 if (strlen (name) > 63) 291 if (strlen (name) > 63)
291 res = GNUNET_SYSERR; 292 return GNUNET_SYSERR;
292 return res; 293 return GNUNET_OK;
293} 294}
294 295
295 296