summaryrefslogtreecommitdiffstats
path: root/sbin/iked/policy.c
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2020-09-09 21:25:42 +0000
committertobhe <tobhe@openbsd.org>2020-09-09 21:25:42 +0000
commit34642e6951180f98f2d290a2bdd44e1b0e51880c (patch)
treefa786589159d75cbf0dda9d70bf4d7a85c67c71b /sbin/iked/policy.c
parentElement next-line scopes can nest. Consequently, even when closing (diff)
downloadwireguard-openbsd-34642e6951180f98f2d290a2bdd44e1b0e51880c.tar.xz
wireguard-openbsd-34642e6951180f98f2d290a2bdd44e1b0e51880c.zip
Delete dead code.
Diffstat (limited to 'sbin/iked/policy.c')
-rw-r--r--sbin/iked/policy.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sbin/iked/policy.c b/sbin/iked/policy.c
index 655e4abaf59..015dcefdaff 100644
--- a/sbin/iked/policy.c
+++ b/sbin/iked/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.69 2020/08/23 19:16:08 tobhe Exp $ */
+/* $OpenBSD: policy.c,v 1.70 2020/09/09 21:25:42 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -648,18 +648,6 @@ sa_cmp(struct iked_sa *a, struct iked_sa *b)
if (a->sa_hdr.sh_ispi < b->sa_hdr.sh_ispi)
return (1);
-#if 0
- /* Responder SPI is not yet set in the local IKE SADB */
- if ((b->sa_type == IKED_SATYPE_LOCAL && b->sa_hdr.sh_rspi == 0) ||
- (a->sa_type == IKED_SATYPE_LOCAL && a->sa_hdr.sh_rspi == 0))
- return (0);
-
- if (a->sa_hdr.sh_rspi > b->sa_hdr.sh_rspi)
- return (-1);
- if (a->sa_hdr.sh_rspi < b->sa_hdr.sh_rspi)
- return (1);
-#endif
-
return (0);
}