[commit] r2703 - freeswitch/trunk/src/mod/endpoints/mod_sofia
14 Sep
2006
14 Sep
'06
9:12 p.m.
Author: anthm Date: Thu Sep 14 17:12:39 2006 New Revision: 2703 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Log: no data means bad read Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Thu Sep 14 17:12:39 2006 @@ -908,8 +908,13 @@ } } - + switch_clear_flag_locked(tech_pvt, TFLAG_READING); + + if (tech_pvt->read_frame.datalen == 0) { + *frame = NULL; + return SWITCH_STATUS_GENERR; + } *frame = &tech_pvt->read_frame;
7357
Age (days ago)
7357
Last active (days ago)
0 comments
1 participants
participants (1)
-
Freeswitch SVN