mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
Remember the DNS lookup done when dnsmgr is called for the first time so that it does not needlessly spit out changed messages when the host really didn't change.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -96,6 +96,7 @@ struct ast_dnsmgr_entry *ast_dnsmgr_get(const char *name, struct in_addr *result
|
||||
entry->result = result;
|
||||
ast_mutex_init(&entry->lock);
|
||||
strcpy(entry->name, name);
|
||||
memcpy(&entry->last, result, sizeof(entry->last));
|
||||
|
||||
AST_LIST_LOCK(&entry_list);
|
||||
AST_LIST_INSERT_HEAD(&entry_list, entry, list);
|
||||
|
||||
Reference in New Issue
Block a user