Slightly modify and merge PR#105 from @MegaManSec

This commit is contained in:
Rasmus Lerdorf 2015-01-21 11:39:23 -08:00
parent 24157f396c
commit e242f871df
2 changed files with 3 additions and 0 deletions

View File

@ -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";
}
}

View File

@ -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;
}