diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-17 20:40:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-17 20:40:23 +0000 |
commit | d86a270b3b0691b651ee6d2b5d5a18b4bd27bbf8 (patch) | |
tree | 2adc0eac0eb8525a7eebd37d74ba96561c2942ad /src/gns | |
parent | 753f60a17b00bbcf56aed4da6e97e2f9b1f49445 (diff) | |
download | gnunet-d86a270b3b0691b651ee6d2b5d5a18b4bd27bbf8.tar.gz gnunet-d86a270b3b0691b651ee6d2b5d5a18b4bd27bbf8.zip |
-check return value
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 28e6c3cc7..50b370264 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -469,6 +469,8 @@ perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, | |||
469 | label, | 469 | label, |
470 | rd_public, | 470 | rd_public, |
471 | rd_public_count); | 471 | rd_public_count); |
472 | if (NULL == block) | ||
473 | return NULL; /* whoops */ | ||
472 | block_size = ntohl (block->purpose.size) | 474 | block_size = ntohl (block->purpose.size) |
473 | + sizeof (struct GNUNET_CRYPTO_EcdsaSignature) | 475 | + sizeof (struct GNUNET_CRYPTO_EcdsaSignature) |
474 | + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); | 476 | + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); |