Fix a bug in SRV lookups where dnsmgr would discard everything but the

first SRV result from DNS before processing weights and priorities and 
dns_parse_answer wouldn't report that there were no records in DNS 
unless a failure occured. Also fixed a bug where dnsmgr_refresh would 
report that a entry was being changed when ast_gethostbyname had failed.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@129156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Brett Bryant
2008-07-08 21:00:01 +00:00
parent da03cdd174
commit 52e8897977
3 changed files with 5 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ static int srv_callback(void *context, unsigned char *answer, int len, unsigned
if (entry)
AST_LIST_INSERT_TAIL(&c->entries, entry, list);
return 1;
return 0;
}
/* Do the bizarre SRV record weight-handling algorithm