From: Ilia Alshanetsky Date: Tue, 13 May 2003 01:58:16 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC3~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d80e0fc48cfe94ae208e4ccf7e9f1c6590203de5;p=php MFH --- diff --git a/main/network.c b/main/network.c index c4c24ebb7b..c0c9010d47 100644 --- a/main/network.c +++ b/main/network.c @@ -202,7 +202,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal TSR sai = res; for (n = 1; (sai = sai->ai_next) != NULL; n++); - *sal = emalloc((n + 1) * sizeof(*sal)); + *sal = safe_emalloc((n + 1), sizeof(*sal), 0); sai = res; sap = *sal; do {