diff options
author | 2003-02-20 18:35:43 +0000 | |
---|---|---|
committer | 2003-02-20 18:35:43 +0000 | |
commit | 518a376b21146d46f492c8453e6fcab0b35250da (patch) | |
tree | 7d23587cd88c0f6f9b474b5642ca089ce28854c6 | |
parent | If there's no tag to be reset, don't reset it (avoids a NULL deref in the IPCOMP case) (diff) | |
download | wireguard-openbsd-518a376b21146d46f492c8453e6fcab0b35250da.tar.xz wireguard-openbsd-518a376b21146d46f492c8453e6fcab0b35250da.zip |
knf
-rw-r--r-- | sys/netinet/ipsec_input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index b268be7b0ab..53b547d857b 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.62 2003/02/20 18:33:49 jason Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.63 2003/02/20 18:35:43 deraadt Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -516,8 +516,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff, /* Check if we had authenticated ESP. */ if (tdbp->tdb_authalgxform) m->m_flags |= M_AUTH; - } - else if (sproto == IPPROTO_IPCOMP) + } else if (sproto == IPPROTO_IPCOMP) m->m_flags |= M_COMP; else m->m_flags |= M_AUTH | M_AUTH_AH; |