aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-19 01:57:19 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-19 01:57:19 +0100
commit726ccfadfa7d0283339e429f6b5b6d03c5b488d0 (patch)
treea4f3da77ebce871bfa11c86b06fa01153212412c /src/peerinfo
parent472250336a3732a1afdd7d2f53386a650b812502 (diff)
downloadgnunet-726ccfadfa7d0283339e429f6b5b6d03c5b488d0.tar.gz
gnunet-726ccfadfa7d0283339e429f6b5b6d03c5b488d0.zip
do not strictly require mq non-NULL, as peerinfo service might have died already
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/peerinfo_api.c5
1 files changed, 1 insertions, 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 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -565,10 +565,7 @@ GNUNET_PEERINFO_add_peer (struct GNUNET_PEERINFO_Handle *h,
565 struct GNUNET_PeerIdentity peer; 565 struct GNUNET_PeerIdentity peer;
566 566
567 if (NULL == h->mq) 567 if (NULL == h->mq)
568 {
569 GNUNET_break (0);
570 return NULL; 568 return NULL;
571 }
572 GNUNET_assert (GNUNET_OK == 569 GNUNET_assert (GNUNET_OK ==
573 GNUNET_HELLO_get_id (hello, 570 GNUNET_HELLO_get_id (hello,
574 &peer)); 571 &peer));