diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-18 16:51:36 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-18 16:51:36 +0000 |
commit | f5c9e36568bee5363815a650bbc3c0a492f11edf (patch) | |
tree | 57f5c40d3d73ebc3e9b0a1620301921e761924a8 /main/dnsmgr.c | |
parent | 121a06bcef920eaacdff522fb7065206ed236618 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@69708 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/dnsmgr.c')
-rw-r--r-- | main/dnsmgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/dnsmgr.c b/main/dnsmgr.c index e373f3aa5..043b9e685 100644 --- a/main/dnsmgr.c +++ b/main/dnsmgr.c @@ -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); |