[PATCH] bogusness in af_key.c

From: Taral (taral@taral.net)
Date: Mon Nov 11 2002 - 20:56:56 EST


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


- 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/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:24 EST