fixed nat detection bug

This commit is contained in:
Martin Willi
2007-03-20 12:25:08 +00:00
parent 69ed04bf1d
commit 37c6ebb78b
+2 -2
View File
@@ -279,9 +279,9 @@ static status_t build_r(private_ike_natd_t *this, message_t *message)
host_t *me, *other; host_t *me, *other;
/* only add notifies on successfull responses. */ /* 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)