From 2cce26c0ceb59b8f43c899cec5da2621e0c151e6 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 18 Jun 2007 16:51:36 +0000 Subject: [PATCH] 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 --- main/dnsmgr.c | 1 + 1 file changed, 1 insertion(+) 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);