From 726ccfadfa7d0283339e429f6b5b6d03c5b488d0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 19 Feb 2019 01:57:19 +0100 Subject: [PATCH] do not strictly require mq non-NULL, as peerinfo service might have died already --- src/peerinfo/peerinfo_api.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index f2af27c0b..4b56b34c7 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -565,10 +565,7 @@ GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h, struct GNUNET_PeerIdentity peer; if (NULL == h->mq) - { - GNUNET_break (0); return NULL; - } GNUNET_assert (GNUNET_OK == GNUNET_HELLO_get_id (hello, &peer)); -- 2.25.1