mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 06:26:41 +00:00
Add more strict hostname checking to ast_dnsmgr_lookup().
Change suggested in review. Review: https://reviewboard.asterisk.org/r/1240/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@323392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -135,7 +135,7 @@ int ast_dnsmgr_lookup(const char *name, struct ast_sockaddr *result, struct ast_
|
||||
* If it's actually an IP address and not a name, there's no
|
||||
* need for a managed lookup.
|
||||
*/
|
||||
if (ast_sockaddr_parse(result, name, 0)) {
|
||||
if (ast_sockaddr_parse(result, name, PARSE_PORT_FORBID)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user