]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun/netstack: remove usage of pkt.IsNil()
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 4 May 2025 15:54:57 +0000 (17:54 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 5 May 2025 13:05:35 +0000 (15:05 +0200)
commite3c1354d27f53462801e1b86b4275699a6f9fdac
treee2f8abd44bb298781dec1cbd7dff43d1bb99e3e4
parent32546a15a87f253c8d03292a3be813b176a8b4e7
tun/netstack: remove usage of pkt.IsNil()

Since 3c75945fd ("netstack: remove PacketBuffer.IsNil()") this has been
invalid. Follow the replacement pattern of that commit.

The old definition inlined to the same code anyway:

 func (pk *PacketBuffer) IsNil() bool {
  return pk == nil
 }

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/netstack/tun.go