mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Apply updated patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
acl.c
4
acl.c
@@ -148,10 +148,10 @@ int ast_lookup_iface(char *iface, struct in_addr *address) {
|
|||||||
close(mysock);
|
close(mysock);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
ast_log(LOG_WARNING, "Unable to get IP of %s: %s\n", iface, strerror(errno));
|
ast_log(LOG_WARNING, "Unable to get IP of %s: %s\n", iface, strerror(errno));
|
||||||
strncpy((char *)address,(char *)&__ourip,sizeof(__ourip));
|
memcpy((char *)address,(char *)&__ourip,sizeof(__ourip));
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
strncpy((char *)address,(char *)&ifreq.ifru_addr.sin_addr,sizeof(ifreq.ifru_addr.sin_addr));
|
memcpy((char *)address,(char *)&ifreq.ifru_addr.sin_addr,sizeof(ifreq.ifru_addr.sin_addr));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user