diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-27 07:16:59 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-27 07:16:59 -0200 |
commit | bf1649eb466516d7552e66f436d03048429334c2 (patch) | |
tree | 267c374e103a24f94406a96958a7e677ee74f13d /sys/netipsec/ipsec.c | |
parent | 6e204e2cf88c010002580a24d8d4fe54361a1f0a (diff) | |
download | FreeBSD-src-bf1649eb466516d7552e66f436d03048429334c2.zip FreeBSD-src-bf1649eb466516d7552e66f436d03048429334c2.tar.gz |
Revert "Optimize the case where we have IPSEC enabled but do not have security policies."
This reverts commit 5aba7ffcfb97d9b6f4ce464de77b02ad4d7b8ad3.
Diffstat (limited to 'sys/netipsec/ipsec.c')
-rw-r--r-- | sys/netipsec/ipsec.c | 6 |
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. */ |