Missing braces in SSL_LoadPrivateCert.
Harmless as the NULL vars were set to NULL again, but ugly.
This commit is contained in:
parent
771500d9f8
commit
9d6f5eb9cb
1 changed files with 10 additions and 2 deletions
|
@ -896,8 +896,16 @@ static qboolean SSL_LoadPrivateCert(gnutls_certificate_credentials_t cred)
|
||||||
const char *errstr;
|
const char *errstr;
|
||||||
gnutls_pk_algorithm_t privalgo = GNUTLS_PK_RSA;
|
gnutls_pk_algorithm_t privalgo = GNUTLS_PK_RSA;
|
||||||
|
|
||||||
if (privf)VFS_CLOSE(privf);privf=NULL;
|
if (privf)
|
||||||
if (pubf)VFS_CLOSE(pubf);pubf=NULL;
|
{
|
||||||
|
VFS_CLOSE(privf);
|
||||||
|
privf = NULL;
|
||||||
|
}
|
||||||
|
if (pubf)
|
||||||
|
{
|
||||||
|
VFS_CLOSE(pubf);
|
||||||
|
pubf = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
Con_Printf("Generating new GNUTLS key+cert...\n");
|
Con_Printf("Generating new GNUTLS key+cert...\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue