An invalid packet may not have set src and dst in packet descriptor.
authorbluhm <bluhm@openbsd.org>
Wed, 20 Jan 2021 23:25:19 +0000 (23:25 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 20 Jan 2021 23:25:19 +0000 (23:25 +0000)
commitc34fe1b3cf88eb8acf1a10a07d780dbf157bdf0b
tree5beaec3fd7d44476ab64c942f7c968e6164883a8
parent2e5c20414ff91e70d7dba4ec647a83703c5e31b2
An invalid packet may not have set src and dst in packet descriptor.
Add a NULL check to prevent crash in pflog(4) introduced in previous
commit.
Reported-by: syzbot+c6d2f2ad34b822bce98a@syzkaller.appspotmail.com
sys/net/if_pflog.c