mtp: Fix the logic... close the socket if we are blocked
Thinko or such.
This commit is contained in:
parent
3c2b84c607
commit
8a96e474a2
|
@ -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;
|
||||
|
|
Reference in New Issue