[svn-commits] file: branch 1.6.1 r166272 - in /branches/1.6.1: ./ main/dnsmgr.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 22 10:10:22 CST 2008


Author: file
Date: Mon Dec 22 10:10:22 2008
New Revision: 166272

URL: http://svn.digium.com/view/asterisk?view=rev&rev=166272
Log:
Merged revisions 166268 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r166268 | file | 2008-12-22 12:08:13 -0400 (Mon, 22 Dec 2008) | 7 lines
  
  Record the previous port in the temporary address structure so that the comparison does not treat the host as having changed even if it did not. This would have been uninitialized before and would have led to a baddddd port.
  (closes issue #13628)
  Reported by: pananix
  Patches:
        bug13628.patch uploaded by jpeeler (license 325)
  Tested by: file, blitzrage
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/main/dnsmgr.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/main/dnsmgr.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/main/dnsmgr.c?view=diff&rev=166272&r1=166271&r2=166272
==============================================================================
--- branches/1.6.1/main/dnsmgr.c (original)
+++ branches/1.6.1/main/dnsmgr.c Mon Dec 22 10:10:22 2008
@@ -164,6 +164,8 @@
 	if (verbose)
 		ast_verb(3, "refreshing '%s'\n", entry->name);
 
+	tmp.sin_port = entry->last.sin_port;
+	
 	if (!ast_get_ip_or_srv(&tmp, entry->name, entry->service) && inaddrcmp(&tmp, &entry->last)) {
 		ast_copy_string(iabuf, ast_inet_ntoa(entry->last.sin_addr), sizeof(iabuf));
 		ast_copy_string(iabuf2, ast_inet_ntoa(tmp.sin_addr), sizeof(iabuf2));




More information about the svn-commits mailing list