lkml.org 
[lkml]   [2002]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] bogusness in af_key.c
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.022 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site