diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index c078cb54e6e083644d703a38e0dc9c21269a71ab..65fcc5b9fa99640972e5bdfae2c0d209423e547f 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -3738,7 +3738,8 @@ static int remoteAuthFillFromConfig(virConnectPtr conn, break; } - if (virAuthConfigLookup(state->config, + if (credname && + virAuthConfigLookup(state->config, "libvirt", VIR_URI_SERVER(conn->uri), credname,