提交 4755e863 编写于 作者: O Olivia Yin 提交者: Eric Blake

fix TLS error with virNetServerClientCreateIdentity

Compilation error when WITH_GNUTLS is 0, introduced in commit d5e83ad9.
上级 c9759a7b
...@@ -687,6 +687,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client) ...@@ -687,6 +687,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client)
} }
#endif #endif
#if WITH_GNUTLS
if (client->tls) { if (client->tls) {
const char *identity = virNetTLSSessionGetX509DName(client->tls); const char *identity = virNetTLSSessionGetX509DName(client->tls);
if (identity && if (identity &&
...@@ -695,6 +696,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client) ...@@ -695,6 +696,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client)
goto cleanup; goto cleanup;
} }
} }
#endif
if (client->sock && if (client->sock &&
virNetSocketGetSecurityContext(client->sock, &seccontext) < 0) virNetSocketGetSecurityContext(client->sock, &seccontext) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册