also use correct encap parameter in PF_KEY
authorMartin Willi <martin@strongswan.org>
Fri, 14 Nov 2008 13:15:26 +0000 (13:15 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 14 Nov 2008 13:15:26 +0000 (13:15 -0000)
src/charon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c

index f641989..2b2fb7f 100644 (file)
@@ -1338,7 +1338,7 @@ static status_t update_sa(private_kernel_pfkey_ipsec_t *this,
                PFKEY_EXT_COPY(msg, response.key_auth);
        }
        
-       if (encap)
+       if (new_encap)
        {
                add_encap_ext(msg, new_src, new_dst);
        }