aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/gnunet-service-peerinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-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);