Messages in this thread Patch in this message | | | Date | Wed, 16 Mar 2005 18:25:03 -0800 | From | Ollie Wild <> | 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)> */ | |