fix TLS error with virNetServerClientCreateIdentity

Compilation error when WITH_GNUTLS is 0, introduced in commit d5e83ad.
This commit is contained in:
Olivia Yin 2013-03-20 10:13:27 +08:00 committed by Eric Blake
parent c9759a7b63
commit 4755e863d1

View File

@ -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)
goto cleanup; goto cleanup;
} }
} }
#endif
if (client->sock && if (client->sock &&
virNetSocketGetSecurityContext(client->sock, &seccontext) < 0) virNetSocketGetSecurityContext(client->sock, &seccontext) < 0)