Skip to content

Commit

Permalink
if_enc(4): Prefer the boolean form when calling bpf_peers_present()
Browse files Browse the repository at this point in the history
No functional change intended.

MFC after:	1 week
  • Loading branch information
gmshake committed Jun 6, 2024
1 parent 780666c commit 215a18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/if_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 215a18d

Please sign in to comment.