]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: Avoid calling virAuthConfigLookup() if 'credname' is NULL.
authorJohn Ferlan <jferlan@redhat.com>
Mon, 7 Jan 2013 17:09:31 +0000 (12:09 -0500)
committerEric Blake <eblake@redhat.com>
Tue, 8 Jan 2013 00:11:56 +0000 (17:11 -0700)
src/remote/remote_driver.c

index c078cb54e6e083644d703a38e0dc9c21269a71ab..65fcc5b9fa99640972e5bdfae2c0d209423e547f 100644 (file)
@@ -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,