mirror of https://github.com/ericonr/sndio.git
set port = NULL for new connctions, fixes crashes
reported by brad
This commit is contained in:
parent
41372817a0
commit
9e83398293
|
@ -853,8 +853,8 @@ sock_hello(struct sock *f)
|
|||
return 0;
|
||||
}
|
||||
f->pstate = SOCK_INIT;
|
||||
f->port = NULL;
|
||||
if (mode & MODE_MIDIMASK) {
|
||||
f->port = NULL;
|
||||
f->slot = NULL;
|
||||
f->midi = midi_new(&sock_midiops, f, mode);
|
||||
if (f->midi == NULL)
|
||||
|
|
Loading…
Reference in New Issue