mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
remote: Avoid calling virAuthConfigLookup() if 'credname' is NULL.
This commit is contained in:
parent
185478af09
commit
2e0e1a91f7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user