aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-14 10:22:03 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-14 10:22:03 +0000
commit91bca4aa6c7559eb7ec09a0e5bcf30448e39f080 (patch)
treea9e3dd4b18609392e919a2dd09d72b132155e2a6 /src/namestore
parent14f550369b00aea7e368d1d5f707df85925103b6 (diff)
downloadgnunet-91bca4aa6c7559eb7ec09a0e5bcf30448e39f080.tar.gz
gnunet-91bca4aa6c7559eb7ec09a0e5bcf30448e39f080.zip
-check for NULL
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c
index 71e89f45f..573a8d0a8 100644
--- a/src/namestore/namestore_common.c
+++ b/src/namestore/namestore_common.c
@@ -523,6 +523,8 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type,
523 uint16_t mx_pref_n; 523 uint16_t mx_pref_n;
524 unsigned int proto; 524 unsigned int proto;
525 525
526 if (NULL == s)
527 return GNUNET_SYSERR;
526 switch (type) 528 switch (type)
527 { 529 {
528 case 0: 530 case 0: