summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/enc.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2021-12-07 20:06:39 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2021-12-07 20:06:39 +0000
commit4c7fcaf90f04e88eb93bce0e09b41e40f6b28c2f (patch)
tree2ff27a5e9a0c776a50f4f3f3b245bf355932720c /usr.bin/openssl/enc.c
parentcad0324982587c98de26013ec0a75c7a9db5523f (diff)
Teach the net80211 stack to remove corresponding frames from ic_pwrsaveq
when a power-saving client decides to leave our hostap interface. Prevents a "key unset for sw crypto" panic as we try to send a frame to a node which is in COLLECT state with its WPA keys already cleared. We were already clearing the queue which buffers power-saved frames for the client node. This queue is stored within the node structure itself. However, the interface has another global queue for frames which need to be transmitted by the driver to a set of nodes during the next DTIM. We missed removing frames for a departing node from this global queue. While here, add missing node refcount adjustments as frames get purged. Problem reported by Mikolaj Kucharski, who tested this fix for more than a week with athn(4), with no further panics observed.
Diffstat (limited to 'usr.bin/openssl/enc.c')
0 files changed, 0 insertions, 0 deletions