aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-10-16 11:24:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-10-16 18:18:33 +0200
commita49c24d9657471deb90a9425cabdb8d3d56f36df (patch)
tree268ed731582e29ebd9ee51fa191ebcc6898bad20 /src/input
parentbcb9531366fcd1400b079316e452441f64d22af2 (diff)
ipaccess: relax default behaviour on errors coming from signalling layer
This patch relaxes the behaviour on error coming from the signalling layer. This is probably too strict for recoverable errors. Don't release msgb in this case, as this is controled by the signaling link layer. Thanks to Lennart Müller <mueller.lennart@googlemail.com> for the report.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/ipaccess.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index d63e796..5e76a09 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -450,10 +450,12 @@ static int handle_ts1_read(struct osmo_fd *bfd)
goto err_msg;
}
if (e1i_ts->line->ops->sign_link(msg) < 0) {
+ /* Don't close the signalling link if the upper layers report
+ * an error, that's too strict. BTW, the signalling layer is
+ * resposible for releasing the message.
+ */
LOGP(DLINP, LOGL_ERROR, "Bad signalling message,"
"sign_link returned error\n");
- ret = -EINVAL;
- goto err;
}
return 0;