[asterisk-commits] simon.perreault: branch group/v6 r84155 - /team/group/v6/trunk/main/netsock.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 1 08:25:13 CDT 2007
Author: simon.perreault
Date: Mon Oct 1 08:25:12 2007
New Revision: 84155
URL: http://svn.digium.com/view/asterisk?view=rev&rev=84155
Log:
Fixed HUGE-ASS pointer bug.
Modified:
team/group/v6/trunk/main/netsock.c
Modified: team/group/v6/trunk/main/netsock.c
URL: http://svn.digium.com/view/asterisk/team/group/v6/trunk/main/netsock.c?view=diff&rev=84155&r1=84154&r2=84155
==============================================================================
--- team/group/v6/trunk/main/netsock.c (original)
+++ team/group/v6/trunk/main/netsock.c Mon Oct 1 08:25:12 2007
@@ -1108,7 +1108,7 @@
}
*srclen = sizeof(struct sockaddr_storage);
if (getsockname(sockfd, src, srclen)) {
- getnameinfo(src, srclen, iabuf, sizeof(iabuf),
+ getnameinfo(src, *srclen, iabuf, sizeof(iabuf),
sbuf, sizeof(sbuf), NI_NUMERICHOST|NI_NUMERICSERV);
ast_log(LOG_WARNING, "Cannot get socket name %s port %s: %s\n", iabuf, sbuf, strerror(errno));
close(sockfd);
More information about the asterisk-commits
mailing list