diff --git a/src/generator.c b/src/generator.c index 9ed5132a..5eb71418 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2888,7 +2888,7 @@ static proxy_instance_t *__add_proxy(ckpool_t *ckp, gdata_t *gdata, const int id proxy->id = id; proxy->url = strdup(ckp->proxyurl[id]); proxy->auth = strdup(ckp->proxyauth[id]); - if (proxy->pass) + if (ckp->proxypass[id]) proxy->pass = strdup(ckp->proxypass[id]); else proxy->pass = strdup("");