]> granicus.if.org Git - php/commitdiff
emalloc -> safe_emalloc
authorIlia Alshanetsky <iliaa@php.net>
Tue, 13 May 2003 01:57:54 +0000 (01:57 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 13 May 2003 01:57:54 +0000 (01:57 +0000)
main/network.c

index 61bbecb5e6ce02fc674e4b88562fc9bcbf3a22fb..f0ad5e0ad7e7c3efe526d4f9e532be95aeb78182 100644 (file)
@@ -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 {