From 91b04f708f790447552dc196e2bc0d2ae2e4379d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Nov 2013 21:32:50 +0000 Subject: [PATCH] tls: Fix CID 242014 Uninitialized scalar variable Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- source4/lib/tls/tls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c index 66c8858c8b0..b9182adb823 100644 --- a/source4/lib/tls/tls.c +++ b/source4/lib/tls/tls.c @@ -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);