diff options
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index c53e8f42aa75..ccfbd328a69d 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1921,6 +1921,9 @@ no_transform: | |||
1921 | } | 1921 | } |
1922 | ok: | 1922 | ok: |
1923 | xfrm_pols_put(pols, drop_pols); | 1923 | xfrm_pols_put(pols, drop_pols); |
1924 | if (dst && dst->xfrm && | ||
1925 | dst->xfrm->props.mode == XFRM_MODE_TUNNEL) | ||
1926 | dst->flags |= DST_XFRM_TUNNEL; | ||
1924 | return dst; | 1927 | return dst; |
1925 | 1928 | ||
1926 | nopol: | 1929 | nopol: |