diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-11-21 02:54:57 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-11-21 02:54:57 +0000 |
commit | 5523370328d3e24c1794f8bbb124952cf3a237a4 (patch) | |
tree | b27017a629fc9f7eb7f171d568c183c29c173015 /sys/netinet/ipsec_input.c | |
parent | d71f9535eca0b2f727b8795e8c909d462692d9c1 (diff) |
Fix whitespace and long lines.
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index b1465f43b8c..0ca5cf07f52 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.191 2021/11/11 18:08:18 bluhm Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.192 2021/11/21 02:54:56 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -311,8 +311,8 @@ ipsec_common_input(struct mbuf **mp, int skip, int protoff, int af, int sproto, } if (sproto != IPPROTO_IPCOMP) { - if ((encif = enc_getif(tdbp->tdb_rdomain_post, - tdbp->tdb_tap)) == NULL) { + encif = enc_getif(tdbp->tdb_rdomain_post, tdbp->tdb_tap); + if (encif == NULL) { DPRINTF("no enc%u interface for SA %s/%08x/%u", tdbp->tdb_tap, ipsp_address(&dst_address, buf, sizeof(buf)), @@ -583,7 +583,8 @@ ipsec_common_input_cb(struct mbuf **mp, struct tdb *tdbp, int skip, int protoff) tdbp->tdb_idecompbytes += m->m_pkthdr.len; #if NBPFILTER > 0 - if ((encif = enc_getif(tdbp->tdb_rdomain_post, tdbp->tdb_tap)) != NULL) { + encif = enc_getif(tdbp->tdb_rdomain_post, tdbp->tdb_tap); + if (encif != NULL) { encif->if_ipackets++; encif->if_ibytes += m->m_pkthdr.len; |