mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
if_enc(4): Prefer the boolean form when calling bpf_peers_present()
No functional change intended. MFC after: 1 week (cherry picked from commit 215a18d502cba2cf57251e82a84484219f2c432a)
This commit is contained in:
parent
5734aad037
commit
f60124850f
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ enc_bpftap(struct ifnet *ifp, struct mbuf *m, const struct secasvar *sav,
|
|||
else if (hhook_type == HHOOK_TYPE_IPSEC_OUT &&
|
||||
(enc & V_bpf_mask_out) == 0)
|
||||
return;
|
||||
if (bpf_peers_present(ifp->if_bpf) == 0)
|
||||
if (!bpf_peers_present(ifp->if_bpf))
|
||||
return;
|
||||
hdr.af = af;
|
||||
hdr.spi = sav->spi;
|
||||
|
|
|
|||
Loading…
Reference in a new issue