summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/ipsec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index bf02f93..f01f0fe 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -1275,9 +1275,6 @@ ipsec46_in_reject(struct mbuf *m, struct inpcb *inp)
int error;
int result;
- if (!key_havesp(IPSEC_DIR_INBOUND))
- return 0;
-
IPSEC_ASSERT(m != NULL, ("null mbuf"));
/* Get SP for this packet. */
@@ -1405,9 +1402,6 @@ ipsec_hdrsiz(struct mbuf *m, u_int dir, struct inpcb *inp)
int error;
size_t size;
- if (!key_havesp(dir))
- return 0;
-
IPSEC_ASSERT(m != NULL, ("null mbuf"));
/* Get SP for this packet. */
OpenPOWER on IntegriCloud