1
0
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:
Volker Lendecke 2013-11-11 21:32:50 +00:00 committed by Andreas Schneider
parent 2be1eeab7f
commit 91b04f708f

View File

@ -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);