Skip to contentSkip to conversation

bogusness in af_key.c

PATCH New Taral 1 participant 1 message Nov 12, 2002

Subsystems (2)
lore
Share & tools
lore

Taral

author
#0 lore raw

PATCH 1/1 bogusness in af_key.c

pfkey_sendmsg returns the wrong value. Patch to fix:

net/key/af_key.c renamed from net/key/af_key.c.dist +1 -1
@@ -2179,7 +2179,7 @@
 	if (skb)
 		kfree_skb(skb);
 
-	return err;
+	return err != 0 ? err : len;
 }
 
 static int pfkey_recvmsg(struct kiocb *kiocb,
Signature · 3 lines
Taral <[email protected]>
This message is digitally signed. Please PGP encrypt mail to me.
"Pretty please with dollars on top?" -- Me