aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-21 17:46:11 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-21 17:46:11 +0000
commitf295f37ac5f7122916f9918865db021fe0c103b5 (patch)
tree809773563f1597ad8cfd972ed6f13cf483658bfa /src/peerinfo
parentad26558ee38ef96e58398145626eab403659c120 (diff)
downloadgnunet-f295f37ac5f7122916f9918865db021fe0c103b5.tar.gz
gnunet-f295f37ac5f7122916f9918865db021fe0c103b5.zip
-check return value and report errors
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 90f0b75dc..2fe00c707 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -664,7 +664,12 @@ update_friend_hello (const struct GNUNET_HELLO_Message *hello,
664 return res; 664 return res;
665 } 665 }
666 666
667 GNUNET_HELLO_get_key (hello, &pk); 667 if (GNUNET_OK !=
668 GNUNET_HELLO_get_key (hello, &pk))
669 {
670 GNUNET_break (0);
671 return NULL;
672 }
668 tmp = GNUNET_HELLO_create (&pk, NULL, NULL, GNUNET_YES); 673 tmp = GNUNET_HELLO_create (&pk, NULL, NULL, GNUNET_YES);
669 res = GNUNET_HELLO_merge (hello, tmp); 674 res = GNUNET_HELLO_merge (hello, tmp);
670 GNUNET_free (tmp); 675 GNUNET_free (tmp);