artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0521b
)
Fix crash caused by confusion between requested device and last used one
author
ratchov
<ratchov@openbsd.org>
Tue, 15 Mar 2022 05:53:37 +0000
(
05:53
+0000)
committer
ratchov
<ratchov@openbsd.org>
Tue, 15 Mar 2022 05:53:37 +0000
(
05:53
+0000)
Found by and ok semarie@
usr.bin/sndiod/dev.c
patch
|
blob
|
history
diff --git
a/usr.bin/sndiod/dev.c
b/usr.bin/sndiod/dev.c
index
b63af22
..
b9f244b
100644
(file)
--- a/
usr.bin/sndiod/dev.c
+++ b/
usr.bin/sndiod/dev.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dev.c,v 1.10
3 2021/11/01 14:43:24
ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.10
4 2022/03/15 05:53:37
ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@
-1776,7
+1776,7
@@
slot_new(struct opt *opt, unsigned int id, char *who,
found:
/* open device, this may change opt's device */
- if (!opt_ref(
s->
opt))
+ if (!opt_ref(opt))
return NULL;
s->opt = opt;
s->ops = ops;