lbarnaud Tue Nov 4 20:40:30 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/main network.c Log: MFH: initialize memory http://cvs.php.net/viewvc.cgi/php-src/main/network.c?r1=1.118.2.2.2.6.2.9&r2=1.118.2.2.2.6.2.10&diff_format=u Index: php-src/main/network.c diff -u php-src/main/network.c:1.118.2.2.2.6.2.9 php-src/main/network.c:1.118.2.2.2.6.2.10 --- php-src/main/network.c:1.118.2.2.2.6.2.9 Fri Oct 24 10:44:43 2008 +++ php-src/main/network.c Tue Nov 4 20:40:30 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: network.c,v 1.118.2.2.2.6.2.9 2008/10/24 10:44:43 felipe Exp $ */ +/* $Id: network.c,v 1.118.2.2.2.6.2.10 2008/11/04 20:40:30 lbarnaud Exp $ */ /*#define DEBUG_MAIN_NETWORK 1*/ @@ -647,6 +647,7 @@ { php_sockaddr_storage sa; socklen_t sl = sizeof(sa); + memset(&sa, 0, sizeof(sa)); if (getpeername(sock, (struct sockaddr*)&sa, &sl) == 0) { php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, @@ -666,6 +667,7 @@ { php_sockaddr_storage sa; socklen_t sl = sizeof(sa); + memset(&sa, 0, sizeof(sa)); if (getsockname(sock, (struct sockaddr*)&sa, &sl) == 0) { php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php