From: Joshua Colp Date: Mon, 18 Jun 2007 16:51:36 +0000 (+0000) Subject: Remember the DNS lookup done when dnsmgr is called for the first time so that it... X-Git-Tag: 1.4.6~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cce26c0ceb59b8f43c899cec5da2621e0c151e6;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/dnsmgr.c b/main/dnsmgr.c index e373f3aa53..043b9e6857 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);