summaryrefslogtreecommitdiffstats
path: root/source4/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-11-11 21:32:50 +0000
committerAndreas Schneider <asn@samba.org>2013-11-13 09:01:55 +0100
commit91b04f708f790447552dc196e2bc0d2ae2e4379d (patch)
treec8589426c1f6b992e2c096bbb682f186055356c8 /source4/lib
parent2be1eeab7f66a4b606001959c79c6d09b6be87f3 (diff)
downloadsamba-91b04f708f790447552dc196e2bc0d2ae2e4379d.tar.gz
samba-91b04f708f790447552dc196e2bc0d2ae2e4379d.tar.xz
samba-91b04f708f790447552dc196e2bc0d2ae2e4379d.zip
tls: Fix CID 242014 Uninitialized scalar variable
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/tls/tls.c1
1 files changed, 1 insertions, 0 deletions
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);