Commit 1d7ed419 authored by David S. Miller's avatar David S. Miller

[AF_KEY]: Force km.state to XFRM_STATE_DEAD in pfkey_msg2xfrm_state.

parent 29b25594
...@@ -1090,6 +1090,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr, ...@@ -1090,6 +1090,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr,
return x; return x;
out: out:
x->km.state = XFRM_STATE_DEAD;
xfrm_state_put(x); xfrm_state_put(x);
return ERR_PTR(-ENOBUFS); return ERR_PTR(-ENOBUFS);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment