[svn-commits] jpeeler: branch 1.4 r113012 - /branches/1.4/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Apr 7 10:16:44 CDT 2008
Author: jpeeler
Date: Mon Apr 7 10:16:44 2008
New Revision: 113012
URL: http://svn.digium.com/view/asterisk?view=rev&rev=113012
Log:
(closes issue #12362)
(closes issue #12372)
Reported by: vinsik
Tested by: tecnoxarxa
This one line change makes an if inside a for loop (in realtime_peer) check all the ast_variables the loop was intending to test rather than just the first one.
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=113012&r1=113011&r2=113012
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Apr 7 10:16:44 2008
@@ -2541,7 +2541,7 @@
*/
if (var) {
for (tmp = var; tmp; tmp = tmp->next) {
- if (!strcasecmp(tmp->name, "host")) {
+ if (!strcasecmp(var->name, "host")) {
struct hostent *hp;
struct ast_hostent ahp;
if (!(hp = ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr, &sin->sin_addr, sizeof(hp->h_addr)))) {
More information about the svn-commits
mailing list