diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-08-23 09:46:08 -0400 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2013-08-26 04:59:48 -0400 |
commit | 0806ae4cc8722b2d2822fe3fa3f516f2da6b9459 (patch) | |
tree | 77d3da5d30acf33fd6988e378b7546ef5a93c7d6 /net/xfrm | |
parent | b4de77ade3fc56e41b978b68d78a351dab28b74e (diff) |
xfrm: announce deleation of temporary SA
Creation of temporary SA are announced by netlink, but there is no notification
for the deletion.
This patch fix this asymmetric situation.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 4f8ace855864..3fd65b73df7e 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -471,7 +471,7 @@ expired: | |||
471 | } | 471 | } |
472 | 472 | ||
473 | err = __xfrm_state_delete(x); | 473 | err = __xfrm_state_delete(x); |
474 | if (!err && x->id.spi) | 474 | if (!err) |
475 | km_state_expired(x, 1, 0); | 475 | km_state_expired(x, 1, 0); |
476 | 476 | ||
477 | xfrm_audit_state_delete(x, err ? 0 : 1, | 477 | xfrm_audit_state_delete(x, err ? 0 : 1, |