public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Taral <taral@taral.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] bogusness in af_key.c
Date: Mon, 11 Nov 2002 19:56:56 -0600	[thread overview]
Message-ID: <20021112015656.GA12342@hatchling.taral.net> (raw)

[-- 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 --]

                 reply	other threads:[~2002-11-12  1:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021112015656.GA12342@hatchling.taral.net \
    --to=taral@taral.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox