소스 검색

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 년 전
부모
커밋
696e29b9a4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;