set port = NULL for new connctions, fixes crashes

reported by brad
This commit is contained in:
Alexandre Ratchov 2012-12-06 09:12:00 +01:00
parent 41372817a0
commit 9e83398293
1 changed files with 1 additions and 1 deletions

View File

@ -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)