aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-17 14:19:37 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-17 14:19:37 +0000
commit4a1012b083430b9685660c3b8fc4b163f75c75a0 (patch)
treee6392598c53f4ca42939b4bc7b543453292d83d8 /src
parentb12b0876dddf1db8da7042d1024c8b469831e96e (diff)
downloadgnunet-4a1012b083430b9685660c3b8fc4b163f75c75a0.tar.gz
gnunet-4a1012b083430b9685660c3b8fc4b163f75c75a0.zip
set GNUNET_NO on can_drop for connect messages
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 535980070..b3ef1cad9 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -3340,7 +3340,7 @@ handle_pong (struct Neighbour *n,
3340 "PONG", GNUNET_i2s (&t.target), 3340 "PONG", GNUNET_i2s (&t.target),
3341 (unsigned int) t.challenge); 3341 (unsigned int) t.challenge);
3342#endif 3342#endif
3343 GNUNET_break_op (0); 3343 GNUNET_break_op (n->ping_challenge != t.challenge);
3344 return; 3344 return;
3345 } 3345 }
3346 switch (n->status) 3346 switch (n->status)
@@ -3384,7 +3384,7 @@ handle_pong (struct Neighbour *n,
3384 cnm.header.size = htons (sizeof (struct ConnectNotifyMessage)); 3384 cnm.header.size = htons (sizeof (struct ConnectNotifyMessage));
3385 cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); 3385 cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);
3386 cnm.peer = n->peer; 3386 cnm.peer = n->peer;
3387 send_to_all_clients (&cnm.header, GNUNET_YES, GNUNET_CORE_OPTION_SEND_CONNECT); 3387 send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_CONNECT);
3388 process_encrypted_neighbour_queue (n); 3388 process_encrypted_neighbour_queue (n);
3389 /* fall-through! */ 3389 /* fall-through! */
3390 case PEER_STATE_KEY_CONFIRMED: 3390 case PEER_STATE_KEY_CONFIRMED:
@@ -4179,7 +4179,7 @@ handle_transport_notify_disconnect (void *cls,
4179 cnm.header.size = htons (sizeof (struct DisconnectNotifyMessage)); 4179 cnm.header.size = htons (sizeof (struct DisconnectNotifyMessage));
4180 cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT); 4180 cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT);
4181 cnm.peer = *peer; 4181 cnm.peer = *peer;
4182 send_to_all_clients (&cnm.header, GNUNET_YES, GNUNET_CORE_OPTION_SEND_DISCONNECT); 4182 send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT);
4183 } 4183 }
4184 n->is_connected = GNUNET_NO; 4184 n->is_connected = GNUNET_NO;
4185 while (NULL != (car = n->active_client_request_head)) 4185 while (NULL != (car = n->active_client_request_head))