fix #3693: if PA is NULL, ignore message, we must be in the wrong state
authorChristian Grothoff <christian@grothoff.org>
Sun, 28 Jun 2015 13:53:42 +0000 (13:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 28 Jun 2015 13:53:42 +0000 (13:53 +0000)
src/transport/gnunet-service-transport_neighbours.c

index a0f9e1fd7a14bbe043d9cd74d855aebbc88d7e62..5fe7d4e3b65cdccedde0c87570c5bbfc772a7c1c 100644 (file)
@@ -3528,8 +3528,9 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message,
      now wait for the ACK to finally be connected
      - If we sent a SYN_ACK to this peer before */
 
-  if ( (GNUNET_TRANSPORT_PS_SYN_RECV_ACK != n->state) &&
-       (ACK_SEND_ACK != n->ack_state))
+  if ( ( (GNUNET_TRANSPORT_PS_SYN_RECV_ACK != n->state) &&
+        (ACK_SEND_ACK != n->ack_state) ) ||
+       (NULL == n->primary_address.address) ) 
   {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Received unexpected ACK message from peer `%s' in state %s/%s\n",