Skip to content

Commit

Permalink
Merged revisions 332560 via svnmerge from
Browse files Browse the repository at this point in the history
https://origsvn.digium.com/svn/asterisk/branches/10

................
  r332560 | twilson | 2011-08-18 16:34:04 -0500 (Thu, 18 Aug 2011) | 12 lines
  
  Merged revisions 332559 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.8
  
  ........
    r332559 | twilson | 2011-08-18 16:26:01 -0500 (Thu, 18 Aug 2011) | 5 lines
    
    Fix possible error on stringification of IPv4-mapped addrs
    
    The FreeBSD netsock2 test has been failing for a while. We were
    pasing sa->len to getnameinfo instead of sa_tmp->len.

    ASTERISK-18289
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@332561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
  • Loading branch information
Terry Wilson committed Aug 18, 2011
1 parent 75bb879 commit d2af16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/netsock2.c
Expand Up @@ -85,7 +85,7 @@ char *ast_sockaddr_stringify_fmt(const struct ast_sockaddr *sa, int format)
sa_tmp = sa;
}

if ((e = getnameinfo((struct sockaddr *)&sa_tmp->ss, sa->len,
if ((e = getnameinfo((struct sockaddr *)&sa_tmp->ss, sa_tmp->len,
format & AST_SOCKADDR_STR_ADDR ? host : NULL,
format & AST_SOCKADDR_STR_ADDR ? sizeof(host) : 0,
format & AST_SOCKADDR_STR_PORT ? port : 0,
Expand Down

0 comments on commit d2af16a

Please sign in to comment.