[Asterisk-cvs] asterisk/channels chan_sip.c,1.618,1.619
markster at lists.digium.com
markster at lists.digium.com
Fri Jan 7 15:31:05 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv1517/channels
Modified Files:
chan_sip.c
Log Message:
Fix "externhost"
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.618
retrieving revision 1.619
diff -u -d -r1.618 -r1.619
--- chan_sip.c 7 Jan 2005 07:11:40 -0000 1.618
+++ chan_sip.c 7 Jan 2005 21:35:50 -0000 1.619
@@ -654,7 +654,7 @@
time(&externexpire);
externexpire += externrefresh;
if ((hp = ast_gethostbyname(externhost, &ahp))) {
- memcpy(&externip, hp->h_addr, sizeof(externip));
+ memcpy(&externip.sin_addr, hp->h_addr, sizeof(externip));
} else
ast_log(LOG_NOTICE, "Warning: Re-lookup of '%s' failed!\n", externhost);
}
More information about the svn-commits
mailing list