From: Martin Willi Date: Tue, 20 Mar 2007 12:25:08 +0000 (-0000) Subject: fixed nat detection bug X-Git-Tag: 4.1.0~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37c6ebb78b33e4b691c657b2c9ffdacb567be9be;p=thirdparty%2Fstrongswan.git fixed nat detection bug --- diff --git a/src/charon/sa/tasks/ike_natd.c b/src/charon/sa/tasks/ike_natd.c index 9b8369355c..50b5d652b1 100644 --- a/src/charon/sa/tasks/ike_natd.c +++ b/src/charon/sa/tasks/ike_natd.c @@ -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. */ - 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)