aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-25 09:57:55 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-25 09:57:55 +0100
commit8a96e474a2a1bded9f6740df18aacc482a253108 (patch)
treedcdd09c8f01914cccbcc3c201ee9f00d638c3c5f
parent3c2b84c6074a9a07d53950a3f3ac24d867f042ac (diff)
mtp: Fix the logic... close the socket if we are blocked
Thinko or such.
-rw-r--r--src/sctp_m2ua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sctp_m2ua.c b/src/sctp_m2ua.c
index d0e88da..5d1db25 100644
--- a/src/sctp_m2ua.c
+++ b/src/sctp_m2ua.c
@@ -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;