9
0
Fork 0

mtp: Fix the logic... close the socket if we are blocked

Thinko or such.
This commit is contained in:
Holger Hans Peter Freyther 2011-01-25 09:57:55 +01:00
parent 3c2b84c607
commit 8a96e474a2
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ static int sctp_trans_accept(struct bsc_fd *fd, unsigned int what)
return -1;
}
if (!trans->base.blocked) {
if (trans->base.blocked) {
LOGP(DINP, LOGL_NOTICE, "The link is blocked.\n");
close(s);
return -1;