ChangeSet 1.2217.1.18, 2005/03/16 20:56:17-08:00, [EMAIL PROTECTED]
[AF_KEY]: Fix error handling in pfkey_xfrm_state2msg()
The pfkey_xfrm_state2msg() was missing a return in an EINVAL statement.
Signed-off-by: Hideaki YOSHIFUJI <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
af_key.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/net/key/af_key.c b/net/key/af_key.c
--- a/net/key/af_key.c 2005-03-18 14:06:58 -08:00
+++ b/net/key/af_key.c 2005-03-18 14:06:58 -08:00
@@ -593,7 +593,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)> */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html