diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 3dbb70969..0827f53ec 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1053,6 +1053,7 @@ send_broken_unknown (const struct GNUNET_CADET_Hash *connection_id, | |||
1053 | const struct GNUNET_PeerIdentity *peer_id) | 1053 | const struct GNUNET_PeerIdentity *peer_id) |
1054 | { | 1054 | { |
1055 | struct GNUNET_CADET_ConnectionBroken *msg; | 1055 | struct GNUNET_CADET_ConnectionBroken *msg; |
1056 | struct CadetPeerQueue *q; | ||
1056 | struct CadetPeer *neighbor; | 1057 | struct CadetPeer *neighbor; |
1057 | 1058 | ||
1058 | GCC_check_connections (); | 1059 | GCC_check_connections (); |
@@ -1070,10 +1071,12 @@ send_broken_unknown (const struct GNUNET_CADET_Hash *connection_id, | |||
1070 | memset (&msg->peer2, 0, sizeof (msg->peer2)); | 1071 | memset (&msg->peer2, 0, sizeof (msg->peer2)); |
1071 | neighbor = GCP_get (peer_id, GNUNET_NO); /* We MUST know neighbor. */ | 1072 | neighbor = GCP_get (peer_id, GNUNET_NO); /* We MUST know neighbor. */ |
1072 | GNUNET_assert (NULL != neighbor); | 1073 | GNUNET_assert (NULL != neighbor); |
1073 | GCP_queue_add (neighbor, msg, GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN, | 1074 | q = GCP_queue_add (neighbor, msg, GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN, |
1074 | UINT16_MAX, 2, sizeof (struct GNUNET_CADET_ConnectionBroken), | 1075 | UINT16_MAX, 2, |
1075 | NULL, GNUNET_SYSERR, /* connection, fwd */ | 1076 | sizeof (struct GNUNET_CADET_ConnectionBroken), |
1076 | NULL, NULL); /* continuation */ | 1077 | NULL, GNUNET_SYSERR, /* connection, fwd */ |
1078 | NULL, NULL); /* continuation */ | ||
1079 | GNUNET_assert (NULL != q); | ||
1077 | GCC_check_connections (); | 1080 | GCC_check_connections (); |
1078 | } | 1081 | } |
1079 | 1082 | ||