aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns_api.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-20 11:19:12 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-20 11:19:12 +0000
commit98ad58b921d43d6385ca7e3089a6fee4688175cf (patch)
tree4690a27e523104921efce4f6707729117ff73d7e /src/gns/gns_api.c
parent0ec176660b52cfb5c3eb14dfbb19ca235ee971fd (diff)
downloadgnunet-98ad58b921d43d6385ca7e3089a6fee4688175cf.tar.gz
gnunet-98ad58b921d43d6385ca7e3089a6fee4688175cf.zip
-coverity
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r--src/gns/gns_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index 9806082bc..28d29f58a 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -666,6 +666,11 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
666 size_t key_len = 0; 666 size_t key_len = 0;
667 char* pkey_tmp; 667 char* pkey_tmp;
668 668
669 if (NULL == name)
670 {
671 return NULL;
672 }
673
669 if (NULL != shorten_key) 674 if (NULL != shorten_key)
670 { 675 {
671 pkey_enc = GNUNET_CRYPTO_rsa_encode_key (shorten_key); 676 pkey_enc = GNUNET_CRYPTO_rsa_encode_key (shorten_key);
@@ -673,11 +678,6 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
673 key_len = ntohs (pkey_enc->len); 678 key_len = ntohs (pkey_enc->len);
674 } 679 }
675 680
676 if (NULL == name)
677 {
678 return NULL;
679 }
680
681 msize = sizeof (struct GNUNET_GNS_ClientLookupMessage) 681 msize = sizeof (struct GNUNET_GNS_ClientLookupMessage)
682 + key_len + strlen(name) + 1; 682 + key_len + strlen(name) + 1;
683 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Trying to lookup %s in GNS\n", name); 683 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Trying to lookup %s in GNS\n", name);