summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-04-15 18:41:46 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-04-15 18:41:46 +0000
commitcbad81e5f94eb8475c2e9ec8815ee1188ff59ac1 (patch)
treea5e5d6953bbf2cda6274ec3b48f5e17faad2b9eb /sbin/iked
parent296752837164e0fe5fd6b3a2c3090f60548f6b7b (diff)
Remove redundant 'sa == NULL' check.
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ikev2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index 956563c5b83..24eaf51ac2c 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.215 2020/04/13 19:10:32 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.216 2020/04/15 18:41:45 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -955,7 +955,7 @@ ikev2_init_recv(struct iked *env, struct iked_message *msg,
if (ikev2_handle_notifies(env, msg) != 0)
return;
- if (sa && msg->msg_nat_detected && sa->sa_natt == 0 &&
+ if (msg->msg_nat_detected && sa->sa_natt == 0 &&
(sock = ikev2_msg_getsocket(env,
sa->sa_local.addr_af, 1)) != NULL) {
/*