Skip to content

Commit

Permalink
xfrm: announce deleation of temporary SA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Dichtel authored and Steffen Klassert committed Aug 26, 2013
1 parent b4de77a commit 0806ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ static enum hrtimer_restart xfrm_timer_handler(struct hrtimer * me)
}

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,
Expand Down

0 comments on commit 0806ae4

Please sign in to comment.