diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/tls/tls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c index 8c885543ee..0c3f707582 100644 --- a/source4/lib/tls/tls.c +++ b/source4/lib/tls/tls.c @@ -417,12 +417,13 @@ struct tls_params *tls_initialise(TALLOC_CTX *mem_ctx) ret = gnutls_dh_params_init(¶ms->dh_params); if (ret < 0) goto init_failed; - if (dhpfile) { + if (dhpfile && *dhpfile) { gnutls_datum_t dhparms; size_t size; dhparms.data = (uint8_t *)file_load(dhpfile, &size, mem_ctx); if (!dhparms.data) { + DEBUG(0,("Failed to read DH Parms from %s\n", dhpfile)); goto init_failed; } dhparms.size = size; |