aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index ef2538baf..c7e711472 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -1577,9 +1577,15 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
1577#endif 1577#endif
1578 n = neighbour_find (h, &im->peer); 1578 n = neighbour_find (h, &im->peer);
1579 if (n == NULL) 1579 if (n == NULL)
1580 n = neighbour_add (h, &im->peer); 1580 {
1581 if (n == NULL) 1581 GNUNET_break (0);
1582 break; 1582 break;
1583 }
1584 if (n->is_connected != GNUNET_YES)
1585 {
1586 GNUNET_break (0);
1587 break;
1588 }
1583 if (h->rec != NULL) 1589 if (h->rec != NULL)
1584 h->rec (h->cls, &im->peer, imm, 1590 h->rec (h->cls, &im->peer, imm,
1585 GNUNET_TIME_relative_ntoh (im->latency), ntohs(im->distance)); 1591 GNUNET_TIME_relative_ntoh (im->latency), ntohs(im->distance));