From: John Ferlan Date: Mon, 7 Jan 2013 17:09:31 +0000 (-0500) Subject: remote: Avoid calling virAuthConfigLookup() if 'credname' is NULL. X-Git-Tag: v1.0.2-rc1~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e0e1a91f7f6c23962a4a37613a39eba94cd4ea6;p=thirdparty%2Flibvirt.git remote: Avoid calling virAuthConfigLookup() if 'credname' is NULL. --- diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index c078cb54e6..65fcc5b9fa 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,