lkml.org 
[lkml]   [2005]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] af_key: broken error handling in pfkey_xfrm_state2msg()
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
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)> */
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.033 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site