summaryrefslogtreecommitdiffstats
path: root/src/input/misdn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/misdn.c')
-rw-r--r--src/input/misdn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/misdn.c b/src/input/misdn.c
index c97169a..afa9032 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -115,7 +115,8 @@ static int handle_ts1_read(struct osmo_fd *bfd)
}
if (alen != sizeof(l2addr)) {
- fprintf(stderr, "%s error len\n", __func__);
+ if (line->ops.error)
+ line->ops.error(NULL, -EBADMSG);
return -EINVAL;
}
@@ -178,6 +179,8 @@ static int handle_ts1_read(struct osmo_fd *bfd)
l2addr.channel, l2addr.sapi, l2addr.tei);
break;
default:
+ if (line->ops.error)
+ line->ops.error(NULL, -EBADMSG);
break;
}
return ret;