82aee579ee
is used, reported by Alexey Suslikov, one with dnsmgr when the looked-up IP address of a peer changes (bug 15827).
15 lines
498 B
Plaintext
15 lines
498 B
Plaintext
$OpenBSD: patch-main_acl_c,v 1.1 2010/04/09 11:05:55 sthen Exp $
|
|
|
|
https://issues.asterisk.org/view.php?id=15827
|
|
|
|
--- main/acl.c.orig Thu Feb 25 22:42:53 2010
|
|
+++ main/acl.c Fri Apr 9 10:46:27 2010
|
|
@@ -387,6 +387,7 @@ int ast_get_ip_or_srv(struct sockaddr_in *sin, const c
|
|
}
|
|
}
|
|
if ((hp = ast_gethostbyname(value, &ahp))) {
|
|
+ sin->sin_family = hp->h_addrtype;
|
|
memcpy(&sin->sin_addr, hp->h_addr, sizeof(sin->sin_addr));
|
|
} else {
|
|
ast_log(LOG_WARNING, "Unable to lookup '%s'\n", value);
|