diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-22 12:33:38 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-22 12:33:38 +0000 |
commit | 51191c78817e2634f52584b6830e4d792c239670 (patch) | |
tree | c8f0af6729b1bdf6dba516bfc8113b7e5be8c7fc /src | |
parent | dbaa8e25ee25e32786f202fabe7542459dee03e2 (diff) | |
download | gnunet-51191c78817e2634f52584b6830e4d792c239670.tar.gz gnunet-51191c78817e2634f52584b6830e4d792c239670.zip |
- null check
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/namestore_common.c | 7 |
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 | |||
286 | int | 286 | int |
287 | GNUNET_NAMESTORE_check_name (const char * name) | 287 | GNUNET_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 | ||