From: Matthias Wachs Date: Thu, 22 Mar 2012 12:33:38 +0000 (+0000) Subject: - null check X-Git-Tag: initial-import-from-subversion-38251~14156 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51191c78817e2634f52584b6830e4d792c239670;p=oweals%2Fgnunet.git - null check --- 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 int GNUNET_NAMESTORE_check_name (const char * name) { - int res = GNUNET_OK; + if (name == NULL) + return GNUNET_SYSERR; if (strlen (name) > 63) - res = GNUNET_SYSERR; - return res; + return GNUNET_SYSERR; + return GNUNET_OK; }