Skip to content

Commit

Permalink
Fixed OpenSSL log error reading cert (#4291)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Feb 5, 2025
1 parent cbfbbc4 commit 3fcce51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjlib/src/pj/ssl_sock_ossl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ static pj_status_t init_ossl_ctx(pj_ssl_sock_t *ssock)
PJ_LOG(4,(ssock->pool->obj_name,
"CA certificates loaded from %s",
(cert->CA_file.slen?cert->CA_file.ptr:"buffer")));
} else {
} else if (cert->CA_file.slen > 0 || cert->CA_buf.slen > 0) {
PJ_LOG(1,(ssock->pool->obj_name,
"Error reading CA certificates from %s",
(cert->CA_file.slen?cert->CA_file.ptr:"buffer")));
Expand Down

0 comments on commit 3fcce51

Please sign in to comment.