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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virAuthConfigLookup(state->config,
|
if (credname &&
|
||||||
|
virAuthConfigLookup(state->config,
|
||||||
"libvirt",
|
"libvirt",
|
||||||
VIR_URI_SERVER(conn->uri),
|
VIR_URI_SERVER(conn->uri),
|
||||||
credname,
|
credname,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user