mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
dcesrv_backupkey_heimdal: Fix CID 1321647 - Unchecked return value
Unchecked return value of gnutls_global_init(). Signed-off-by: Robin Hack <hack.robin@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
9a7a38a6dd
commit
51f221c86e
@ -829,7 +829,11 @@ static WERROR create_heimdal_rsa_key(TALLOC_CTX *ctx, hx509_context *hctx,
|
||||
|
||||
*rsa = NULL;
|
||||
|
||||
gnutls_global_init();
|
||||
ret = gnutls_global_init();
|
||||
if (ret != GNUTLS_E_SUCCESS) {
|
||||
DBG_ERR("TLS error: %s\n", gnutls_strerror(ret));
|
||||
return WERR_INTERNAL_ERROR;
|
||||
}
|
||||
#if defined(HAVE_GCRYPT_H) && !defined(HAVE_GNUTLS3)
|
||||
DEBUG(3,("Enabling QUICK mode in gcrypt\n"));
|
||||
gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0);
|
||||
|
Reference in New Issue
Block a user