summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/network.c2
1 files changed, 1 insertions, 1 deletions
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 {