fixup libmisdnuser

This commit is contained in:
Andreas Eversberg 2022-04-08 19:08:30 +02:00
parent 3672a4c99e
commit 0d74475db1
1 changed files with 2 additions and 0 deletions

View File

@ -942,8 +942,10 @@ again:
if (ret != -EAGAIN)
eprint("%s read socket error %s\n", __FUNCTION__, strerror(errno));
// here ignore when no message available from mISDN
free_mbuffer(mb);
} else if (ret < MISDN_HEADER_LEN) {
eprint("%s read socket short frame\n", __FUNCTION__);
free_mbuffer(mb);
} else {
work |= 1;
mb->len = ret;