diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index cd94a9dd1bad..ee04e6bf0e54 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -1679,8 +1679,12 @@ static int xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
1679 | audit_info.sessionid = NETLINK_CB(skb).sessionid; | 1679 | audit_info.sessionid = NETLINK_CB(skb).sessionid; |
1680 | audit_info.secid = NETLINK_CB(skb).sid; | 1680 | audit_info.secid = NETLINK_CB(skb).sid; |
1681 | err = xfrm_policy_flush(net, type, &audit_info); | 1681 | err = xfrm_policy_flush(net, type, &audit_info); |
1682 | if (err) | 1682 | if (err) { |
1683 | if (err == -ESRCH) /* empty table */ | ||
1684 | return 0; | ||
1683 | return err; | 1685 | return err; |
1686 | } | ||
1687 | |||
1684 | c.data.type = type; | 1688 | c.data.type = type; |
1685 | c.event = nlh->nlmsg_type; | 1689 | c.event = nlh->nlmsg_type; |
1686 | c.seq = nlh->nlmsg_seq; | 1690 | c.seq = nlh->nlmsg_seq; |