[asterisk-commits] file: branch 1.4 r69708 - /branches/1.4/main/dnsmgr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 18 11:51:37 CDT 2007


Author: file
Date: Mon Jun 18 11:51:36 2007
New Revision: 69708

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69708
Log:
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.

Modified:
    branches/1.4/main/dnsmgr.c

Modified: branches/1.4/main/dnsmgr.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/dnsmgr.c?view=diff&rev=69708&r1=69707&r2=69708
==============================================================================
--- branches/1.4/main/dnsmgr.c (original)
+++ branches/1.4/main/dnsmgr.c Mon Jun 18 11:51:36 2007
@@ -96,6 +96,7 @@
 	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);




More information about the asterisk-commits mailing list