Browse Source

Ticket #48781 - Vague error message: setup_ol_tls_conn - failed: unable to create new TLS context

Include the underlying error code to the message "failed: unable to create new TLS context".

https://fedorahosted.org/389/ticket/48781

Reviewed by [email protected].
Graham Leggett 9 years ago
parent
commit
696e29b9a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/ldaputil.c

+ 1 - 1
ldap/servers/slapd/ldaputil.c

@@ -608,7 +608,7 @@ setup_ol_tls_conn(LDAP *ld, int clientauth)
        that optval is ignored - what matters is that it is not NULL */
     if ((rc = ldap_set_option(ld, LDAP_OPT_X_TLS_NEWCTX, &optval))) {
 	slapi_log_error(SLAPI_LOG_FATAL, "setup_ol_tls_conn",
-			"failed: unable to create new TLS context\n");
+			"failed: unable to create new TLS context - %d\n", rc);
     }
 
     return rc;