summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_state.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-08-23 15:46:08 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2013-08-26 10:59:48 +0200
commit0806ae4cc8722b2d2822fe3fa3f516f2da6b9459 (patch)
tree77d3da5d30acf33fd6988e378b7546ef5a93c7d6 /net/xfrm/xfrm_state.c
parentb4de77ade3fc56e41b978b68d78a351dab28b74e (diff)
downloadblackbird-op-linux-0806ae4cc8722b2d2822fe3fa3f516f2da6b9459.tar.gz
blackbird-op-linux-0806ae4cc8722b2d2822fe3fa3f516f2da6b9459.zip
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/xfrm_state.c')
-rw-r--r--net/xfrm/xfrm_state.c2
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:
}
err = __xfrm_state_delete(x);
- if (!err && x->id.spi)
+ if (!err)
km_state_expired(x, 1, 0);
xfrm_audit_state_delete(x, err ? 0 : 1,
OpenPOWER on IntegriCloud