diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index a3733d2db3ba..c21dc26141ea 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -427,7 +427,7 @@ static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) | |||
427 | if (x == NULL) | 427 | if (x == NULL) |
428 | return -ESRCH; | 428 | return -ESRCH; |
429 | 429 | ||
430 | if (err = security_xfrm_state_delete(x)) | 430 | if ((err = security_xfrm_state_delete(x)) != 0) |
431 | goto out; | 431 | goto out; |
432 | 432 | ||
433 | if (xfrm_state_kern(x)) { | 433 | if (xfrm_state_kern(x)) { |
@@ -1057,7 +1057,7 @@ static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfr | |||
1057 | MSG_DONTWAIT); | 1057 | MSG_DONTWAIT); |
1058 | } | 1058 | } |
1059 | } else { | 1059 | } else { |
1060 | if (err = security_xfrm_policy_delete(xp)) | 1060 | if ((err = security_xfrm_policy_delete(xp)) != 0) |
1061 | goto out; | 1061 | goto out; |
1062 | c.data.byid = p->index; | 1062 | c.data.byid = p->index; |
1063 | c.event = nlh->nlmsg_type; | 1063 | c.event = nlh->nlmsg_type; |