Wed Feb 11 15:01:08 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>

* tport.c: fixed tport_queuelen() when queue is full



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11942 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-12 21:08:29 +00:00
parent c27cb514a9
commit 613a5ebf86
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
Thu Feb 12 15:07:42 CST 2009
Thu Feb 12 15:08:17 CST 2009

View File

@ -3734,7 +3734,7 @@ isize_t tport_queuelen(tport_t const *self)
if (self && self->tp_queue) {
unsigned short i, N = self->tp_params->tpp_qsize;
for (i = self->tp_qhead; self->tp_queue[i]; i = (i + 1) % N)
for (i = self->tp_qhead; self->tp_queue[i] && retval < N; i = (i + 1) % N)
retval++;
}