mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Slightly modify and merge PR#105 from @MegaManSec
This commit is contained in:
parent
24157f396c
commit
e242f871df
@ -574,6 +574,8 @@ static char *fpm_conf_set_array(zval *key, zval *value, void **config, int conve
|
||||
} else {
|
||||
kv->value = strdup(Z_STRVAL_P(value));
|
||||
if (fpm_conf_expand_pool_name(&kv->value) == -1) {
|
||||
free(kv->key);
|
||||
free(kv);
|
||||
return "Can't use '$pool' when the pool is not defined";
|
||||
}
|
||||
}
|
||||
|
@ -297,6 +297,7 @@ static int fpm_socket_af_inet_listening_socket(struct fpm_worker_pool_s *wp) /*
|
||||
|
||||
if ((status = getaddrinfo(addr, port_str, &hints, &servinfo)) != 0) {
|
||||
zlog(ZLOG_ERROR, "getaddrinfo: %s\n", gai_strerror(status));
|
||||
free(dup_address);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user