fixed nat detection bug
authorMartin Willi <martin@strongswan.org>
Tue, 20 Mar 2007 12:25:08 +0000 (12:25 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 20 Mar 2007 12:25:08 +0000 (12:25 -0000)
src/charon/sa/tasks/ike_natd.c

index 9b83693..50b5d65 100644 (file)
@@ -279,9 +279,9 @@ static status_t build_r(private_ike_natd_t *this, message_t *message)
        host_t *me, *other;
        
        /* only add notifies on successfull responses. */
        host_t *me, *other;
        
        /* only add notifies on successfull responses. */
-       if (message->get_payload(message, SECURITY_ASSOCIATION))
+       if (message->get_payload(message, SECURITY_ASSOCIATION) == NULL)
        {
        {
-               return NEED_MORE;
+               return SUCCESS;
        }
 
        if (this->src_seen && this->dst_seen)
        }
 
        if (this->src_seen && this->dst_seen)