[svn-commits] seanbright: trunk r302507 - in /trunk: ./ main/utils.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 19 11:59:23 CST 2011


Author: seanbright
Date: Wed Jan 19 11:59:18 2011
New Revision: 302507

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=302507
Log:
Merged revisions 302505 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r302505 | seanbright | 2011-01-19 12:58:11 -0500 (Wed, 19 Jan 2011) | 14 lines
  
  Merged revisions 302504 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r302504 | seanbright | 2011-01-19 12:56:32 -0500 (Wed, 19 Jan 2011) | 7 lines
    
    Make sure that h_length is set when we short-circuit out of ast_gethostbyname.
    
    (closes issue #16135)
    Reported by: thedavidfactor
    Patches:
          utils.patch uploaded by thedavidfactor (license 903)
  ........
................

Modified:
    trunk/   (props changed)
    trunk/main/utils.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: trunk/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/utils.c?view=diff&rev=302507&r1=302506&r2=302507
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Wed Jan 19 11:59:18 2011
@@ -215,6 +215,8 @@
 		hp->hp.h_addrtype = AF_INET;
 		hp->hp.h_addr_list = (void *) hp->buf;
 		hp->hp.h_addr = hp->buf + sizeof(void *);
+		/* For AF_INET, this will always be 4 */
+		hp->hp.h_length = 4;
 		if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0)
 			return &hp->hp;
 		return NULL;




More information about the svn-commits mailing list