also use correct encap parameter in PF_KEY

This commit is contained in:
Martin Willi
2008-11-14 13:15:26 +00:00
parent fd2ebf0cf9
commit 8d50c19833
@@ -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);
}