sndiod: Fix confusion between the slot and ctlslot pointers
authorratchov <ratchov@openbsd.org>
Tue, 2 Apr 2024 05:21:32 +0000 (05:21 +0000)
committerratchov <ratchov@openbsd.org>
Tue, 2 Apr 2024 05:21:32 +0000 (05:21 +0000)
commitae90d84d00b427df64259a5e76b2fb3f044864dd
tree3d24c69402253cc80debd2b1ede0d16374387533
parent465c5d1eacd25e5a8ab359b17d9efb04e8d15f0c
sndiod: Fix confusion between the slot and ctlslot pointers

Fixes crash when the device is disconnected and the clients are not
migrated to another device.
usr.bin/sndiod/dev.c