[Asterisk-cvs] asterisk/channels chan_iax2.c,1.380,1.381
russell
russell
Mon Nov 21 08:15:23 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23136/channels
Modified Files:
chan_iax2.c
Log Message:
issue #5815
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.380
retrieving revision 1.381
diff -u -d -r1.380 -r1.381
--- chan_iax2.c 21 Nov 2005 00:57:35 -0000 1.380
+++ chan_iax2.c 21 Nov 2005 13:04:36 -0000 1.381
@@ -859,10 +859,11 @@
{
struct iax2_peer *peer;
int res = 0;
+
if (lockpeer)
ast_mutex_lock(&peerl.lock);
peer = peerl.peers;
- while(peer) {
+ while (peer) {
if ((peer->addr.sin_addr.s_addr == sin.sin_addr.s_addr) &&
(peer->addr.sin_port == sin.sin_port)) {
ast_copy_string(host, peer->name, len);
@@ -879,8 +880,10 @@
ast_copy_string(host, peer->name, len);
if (ast_test_flag(peer, IAX_TEMPONLY))
destroy_peer(peer);
+ res = 1;
}
}
+
return res;
}
More information about the svn-commits
mailing list