-LRN: gives CONNECT message a priority (stops waiting for ATS to
authorChristian Grothoff <christian@grothoff.org>
Mon, 25 Jun 2012 18:31:37 +0000 (18:31 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 25 Jun 2012 18:31:37 +0000 (18:31 +0000)
provide an address to connect to, and goes straight to checking the
incoming address).

src/transport/gnunet-service-transport_neighbours.c

index 918299feff94aac2a069d28258e86d74d20bd014..4f4dbfefada2e61f9768d38b3d107683b444b0d8 100644 (file)
@@ -2048,6 +2048,9 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
     check_blacklist (peer, ts, address, session, ats, ats_count);
     break;
   case S_INIT_ATS:
+    /* CONNECT message takes priority over us asking ATS for address */
+    n->state = S_CONNECT_RECV_BLACKLIST_INBOUND;
+    /* fallthrough */
   case S_INIT_BLACKLIST:
   case S_CONNECT_SENT:
   case S_CONNECT_RECV_ATS: