Hi: The various XFRM messages that return information generate spurious NLMSG_ERROR messages. This patch fixes that. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Index: kernel-source-2.5/net/xfrm/xfrm_user.c =================================================================== RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/net/xfrm/xfrm_user.c,v retrieving revision 1.11 diff -u -r1.11 xfrm_user.c --- kernel-source-2.5/net/xfrm/xfrm_user.c 29 Jul 2003 11:11:34 -0000 1.11 +++ kernel-source-2.5/net/xfrm/xfrm_user.c 3 Aug 2003 00:21:14 -0000 @@ -937,7 +937,7 @@ rlen = NLMSG_ALIGN(nlh->nlmsg_len); if (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) return -1; netlink_ack(skb, nlh, err);