From: Ilia Alshanetsky Date: Tue, 13 May 2003 01:57:54 +0000 (+0000) Subject: emalloc -> safe_emalloc X-Git-Tag: RELEASE_0_9b~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56ba9b4ae51ef39eae376d0ca61c5dcea3eb016c;p=php emalloc -> safe_emalloc --- diff --git a/main/network.c b/main/network.c index 61bbecb5e6..f0ad5e0ad7 100644 --- a/main/network.c +++ b/main/network.c @@ -203,7 +203,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal, ch ; } - *sal = emalloc((n + 1) * sizeof(*sal)); + *sal = safe_emalloc((n + 1), sizeof(*sal), 0); sai = res; sap = *sal; do {