summaryrefslogtreecommitdiffstats
path: root/sys/dev/sdmmc
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2018-06-04 12:22:45 +0000
committerbluhm <bluhm@openbsd.org>2018-06-04 12:22:45 +0000
commit3f2d79b34bf6dece8c350a5a4bee9f674713b8dc (patch)
tree49fd1da580f91377a3121235c0cd04af9a9e2655 /sys/dev/sdmmc
parenttweak the text of the relaying example: make it clear that the example (diff)
downloadwireguard-openbsd-3f2d79b34bf6dece8c350a5a4bee9f674713b8dc.tar.xz
wireguard-openbsd-3f2d79b34bf6dece8c350a5a4bee9f674713b8dc.zip
The function pf_create_state() calls pf_set_protostate() before
pf_state_insert(), so the state key has not been set. When inlining, the compiler recognized the NULL pointer dereference in s->key[PF_SK_STACK]->proto and optimized it away. But if pf.c was compiled with -fno-inline, the system crashed during boot. Add a NULL check in pf_set_protostate() to handle the situation when the function is called. OK sashan@ henning@
Diffstat (limited to 'sys/dev/sdmmc')
0 files changed, 0 insertions, 0 deletions