[PATCH] bogusness in af_key.c

Taral (taral@taral.net)
Mon, 11 Nov 2002 19:56:56 -0600


--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

pfkey_sendmsg returns the wrong value. Patch to fix:

--- linux-2.5.47/net/key/af_key.c.dist 2002-11-11 19:55:49.000000000 -0600
+++ linux-2.5.47/net/key/af_key.c 2002-11-11 19:09:57.000000000 -0600
@@ -2179,7 +2179,7 @@
if (skb)
kfree_skb(skb);
=20
- return err;
+ return err !=3D 0 ? err : len;
}
=20
static int pfkey_recvmsg(struct kiocb *kiocb,

--=20
Taral <taral@taral.net>
This message is digitally signed. Please PGP encrypt mail to me.
"Pretty please with dollars on top?" -- Me

--4Ckj6UjgE2iN1+kY
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE90F/ooQQF8xCPwJQRAtJjAJ0VtdGUg6UHMDsll1QvUbntvdnxagCeL1HJ
avosVopDrPGp7MgOtEDKwV0=
=pTxk
-----END PGP SIGNATURE-----

--4Ckj6UjgE2iN1+kY--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/