* [PATCH] bogusness in af_key.c
@ 2002-11-12 1:56 Taral
0 siblings, 0 replies; only message in thread
From: Taral @ 2002-11-12 1:56 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
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);
- return err;
+ return err != 0 ? err : len;
}
static int pfkey_recvmsg(struct kiocb *kiocb,
--
Taral <taral@taral.net>
This message is digitally signed. Please PGP encrypt mail to me.
"Pretty please with dollars on top?" -- Me
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-12 1:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-12 1:56 [PATCH] bogusness in af_key.c Taral
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox