-/* $OpenBSD: ip_ipsp.c,v 1.251 2021/11/18 11:04:10 sthen Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.252 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),
* is really one of our addresses if we received the packet!
*/
struct tdb *
-gettdb_dir(u_int rdomain, u_int32_t spi, union sockaddr_union *dst, u_int8_t proto,
- int reverse)
+gettdb_dir(u_int rdomain, u_int32_t spi, union sockaddr_union *dst,
+ u_int8_t proto, int reverse)
{
u_int32_t hashval;
struct tdb *tdbp;
if (--ids->id_refcount > 0)
return;
- /*
+ /*
* Add second for the case ipsp_ids_gc() is already running and
* awaits netlock to be released.
*/
-/* $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
}
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)),
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;