* [PATCH] af_key: broken error handling in pfkey_xfrm_state2msg()
@ 2005-03-17 2:25 Ollie Wild
0 siblings, 0 replies; only message in thread
From: Ollie Wild @ 2005-03-17 2:25 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
Hi,
The pfkey_xfrm_state2msg() was missing a return in an EINVAL statement.
This patch resolves the problem.
Please cc my address on any replies, as I am not on the linux kernel
mailing list.
Ollie
[-- Attachment #2: pfkey_xfrm_state2msg.patch --]
[-- Type: text/x-patch, Size: 461 bytes --]
Fixes broken error handling in pfkey_xfrm_state2msg().
--- net/key/af_key.c.orig 2005-03-16 16:18:10.120476234 -0800
+++ net/key/af_key.c 2005-03-16 16:18:29.665280065 -0800
@@ -598,7 +598,7 @@
/* address family check */
sockaddr_size = pfkey_sockaddr_size(x->props.family);
if (!sockaddr_size)
- ERR_PTR(-EINVAL);
+ return ERR_PTR(-EINVAL);
/* base, SA, (lifetime (HSC),) address(SD), (address(P),)
key(AE), (identity(SD),) (sensitivity)> */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-17 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-17 2:25 [PATCH] af_key: broken error handling in pfkey_xfrm_state2msg() Ollie Wild
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome