mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
tls: Fix CID 242014 Uninitialized scalar variable
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
2be1eeab7f
commit
91b04f708f
@ -395,6 +395,7 @@ struct tls_params *tls_initialise(TALLOC_CTX *mem_ctx, struct loadparm_context *
|
||||
lpcfg_netbios_name(lp_ctx),
|
||||
lpcfg_dnsdomain(lp_ctx));
|
||||
if (hostname == NULL) {
|
||||
ret = GNUTLS_E_MEMORY_ERROR;
|
||||
goto init_failed;
|
||||
}
|
||||
tls_cert_generate(params, hostname, keyfile, certfile, cafile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user