aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/esp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r--net/ipv6/esp6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index e48f2c7c5c59..31f1b5d5e2ef 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -495,7 +495,7 @@ static int esp_init_authenc(struct xfrm_state *x)
495 int err; 495 int err;
496 496
497 err = -EINVAL; 497 err = -EINVAL;
498 if (x->ealg == NULL) 498 if (!x->ealg)
499 goto error; 499 goto error;
500 500
501 err = -ENAMETOOLONG; 501 err = -ENAMETOOLONG;