提交 2e0e1a91 编写于 作者: J John Ferlan 提交者: Eric Blake

remote: Avoid calling virAuthConfigLookup() if 'credname' is NULL.

上级 185478af
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册