• Stefan Knoblich's avatar
    ftmod_isdn: Handle zero length read correctly. · fc9ea9ea
    Stefan Knoblich 提交于
    ftmod_misdn currently returns len == 0 if the incoming message,
    that triggered the read() call, does not contain any data.
    Users of ftdm_channel_read() need to handle this case, or they
    may possibly end up in an endless loop.
    
    This patch reworks the ftdm_channel_read() handling in ftmod_isdn
    and prevents it from entering an endless loop. The read error counter
    is reset on first sucessful read w/ data.
    Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
    fc9ea9ea
ftmod_isdn.c 82.2 KB