Commit 7a05c808 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[XFRM_USER]: Fix spurious NLMSG_ERROR messages.

parent f751788b
...@@ -937,7 +937,7 @@ static int xfrm_user_rcv_skb(struct sk_buff *skb) ...@@ -937,7 +937,7 @@ static int xfrm_user_rcv_skb(struct sk_buff *skb)
rlen = NLMSG_ALIGN(nlh->nlmsg_len); rlen = NLMSG_ALIGN(nlh->nlmsg_len);
if (rlen > skb->len) if (rlen > skb->len)
rlen = skb->len; rlen = skb->len;
if (xfrm_user_rcv_msg(skb, nlh, &err)) { if (xfrm_user_rcv_msg(skb, nlh, &err) < 0) {
if (err == 0) if (err == 0)
return -1; return -1;
netlink_ack(skb, nlh, err); netlink_ack(skb, nlh, err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment