HomeFreeBSD

wg: detach bpf upon destroy as well

Description

wg: detach bpf upon destroy as well

bpfattach() is called in wg_clone_create(), but the bpfdetach() is
missing from wg_close_destroy(). Add the missing bpfdetach() to avoid
leaking both the associated bpf bits as well as the ifnet that bpf will
hold a reference to.

PR: 276526
MFC after: 3 days

Details

Provenance
aly_aaronly.meAuthored on Jan 22 2024, 4:18 PM
kevansCommitted on Jan 22 2024, 4:22 PM
Parents
rGc19fb1f963e3: sqlite3: Vendor import of sqlite3 3.45.0
Branches
Unknown
Tags
Unknown