Missing braces in SSL_LoadPrivateCert.

Harmless as the NULL vars were set to NULL again, but ugly.
This commit is contained in:
Daniel Svensson 2023-12-22 10:30:43 +01:00
parent 771500d9f8
commit 9d6f5eb9cb
1 changed files with 10 additions and 2 deletions

View File

@ -896,8 +896,16 @@ static qboolean SSL_LoadPrivateCert(gnutls_certificate_credentials_t cred)
const char *errstr;
gnutls_pk_algorithm_t privalgo = GNUTLS_PK_RSA;
if (privf)VFS_CLOSE(privf);privf=NULL;
if (pubf)VFS_CLOSE(pubf);pubf=NULL;
if (privf)
{
VFS_CLOSE(privf);
privf = NULL;
}
if (pubf)
{
VFS_CLOSE(pubf);
pubf = NULL;
}
Con_Printf("Generating new GNUTLS key+cert...\n");