mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[XFRM]: Fix missed error setting in xfrm4_policy.c
When we can't find the afinfo we should return EAFNOSUPPORT. GCC warned about the uninitialized 'err' for this path as well. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4337226228
commit
f2f2102d1a
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ __xfrm4_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
|
|||
afinfo = xfrm_state_get_afinfo(dst_prev->xfrm->props.family);
|
||||
if (!afinfo) {
|
||||
dst = *dst_p;
|
||||
err = -EAFNOSUPPORT;
|
||||
goto error;
|
||||
}
|
||||
dst_prev->output = afinfo->output;
|
||||
|
|
Loading…
Reference in a new issue