[asterisk-bugs] [Asterisk 0010817]: [patch] app_queue: interface_exists_global not set return value...
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Sep 24 12:21:10 CDT 2007
The following issue has been REOPENED.
======================================================================
http://bugs.digium.com/view.php?id=10817
======================================================================
Reported By: snar
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 10817
Category: Applications/app_queue
Reproducibility: always
Severity: trivial
Priority: normal
Status: feedback
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 83636
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 09-24-2007 10:16 CDT
Last Modified: 09-24-2007 12:21 CDT
======================================================================
Summary: [patch] app_queue: interface_exists_global not set
return value...
Description:
Function interface_exists_global traverses all queues in order to find,
is the given interface exists in any of the queues...
return value, ret, initialized as ret=0 at line 876, then we gone into
cycle, and, if we found matching interface
if ((mem = ao2_find(q->members, &tmpmem, OBJ_POINTER))) {
ao2_ref(mem, -1);
ao2_unlock(q);
queue_unref(q);
break;
}
we do not change ret before return...
So, interface is never found by the function.
======================================================================
----------------------------------------------------------------------
snar - 09-24-07 12:21
----------------------------------------------------------------------
Looks like you oversimplified my patch :)
Proposed patch returned 1 right after interface was detected, but in your
version
you still scanning other queues looking for other instances of the same
interface,
however will you found it or not - it will not change return value.
Issue History
Date Modified Username Field Change
======================================================================
09-24-07 12:21 snar Note Added: 0071037
======================================================================
More information about the asterisk-bugs
mailing list