diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-06-18 11:16:16 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-06-19 11:32:01 +1000 |
commit | 2627c6c0c2d3d96b3d458092ba8b090447a76a61 (patch) | |
tree | 9b3beebf9c689901eed3cd71a344809e36ca5436 /source4/lib/tls/tls.c | |
parent | 0376d056e58d76b7792a5512d84c07f703838b4d (diff) | |
download | samba-2627c6c0c2d3d96b3d458092ba8b090447a76a61.tar.gz samba-2627c6c0c2d3d96b3d458092ba8b090447a76a61.tar.xz samba-2627c6c0c2d3d96b3d458092ba8b090447a76a61.zip |
Fixed some uninitialised variables
I tried hard to not change the program logic. Should fix bug #6439.
Diffstat (limited to 'source4/lib/tls/tls.c')
-rw-r--r-- | source4/lib/tls/tls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c index 1014ab07a8a..8a5ee89b87f 100644 --- a/source4/lib/tls/tls.c +++ b/source4/lib/tls/tls.c @@ -547,7 +547,6 @@ struct socket_context *tls_init_client(struct socket_context *socket_ctx, struct tls_context *tls; int ret = 0; const int cert_type_priority[] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 }; - char *cafile; struct socket_context *new_sock; NTSTATUS nt_status; @@ -574,7 +573,7 @@ struct socket_context *tls_init_client(struct socket_context *socket_ctx, gnutls_global_init(); gnutls_certificate_allocate_credentials(&tls->xcred); - gnutls_certificate_set_x509_trust_file(tls->xcred, cafile, GNUTLS_X509_FMT_PEM); + gnutls_certificate_set_x509_trust_file(tls->xcred, ca_path, GNUTLS_X509_FMT_PEM); TLSCHECK(gnutls_init(&tls->session, GNUTLS_CLIENT)); TLSCHECK(gnutls_set_default_priority(tls->session)); gnutls_certificate_type_set_priority(tls->session, cert_type_priority); |