xfrm: Flushing empty SPD generates false events
[safe/jmp/linux-2.6] / net / xfrm / xfrm_user.c
index 7c87004..b0fb7d3 100644 (file)
@@ -1677,7 +1677,7 @@ static int xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
        audit_info.secid = NETLINK_CB(skb).sid;
        err = xfrm_policy_flush(net, type, &audit_info);
        if (err)
-               return err;
+               return 0;
        c.data.type = type;
        c.event = nlh->nlmsg_type;
        c.seq = nlh->nlmsg_seq;