Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XrdHttp] XrdHttpProtocol - Calls to ERR_print_errors() is done only … #1972

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/XrdHttp/XrdHttpProtocol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -526,22 +526,23 @@ int XrdHttpProtocol::Process(XrdLink *lp) // We ignore the argument here
TRACEI(DEBUG, " Entering SSL_accept...");
int res = SSL_accept(ssl);
TRACEI(DEBUG, " SSL_accept returned :" << res);
ERR_print_errors(sslbio_err);

if ((res == -1) && (SSL_get_error(ssl, res) == SSL_ERROR_WANT_READ)) {
TRACEI(DEBUG, " SSL_accept wants to read more bytes... err:" << SSL_get_error(ssl, res));
return 1;
}

if (res < 0) {
if(res <= 0) {
ERR_print_errors(sslbio_err);
SSL_free(ssl);
ssl = 0;
return -1;
}
if (res < 0) {

SSL_free(ssl);
ssl = 0;
return -1;
}
}

BIO_set_nbio(sbio, 0);
ERR_print_errors(sslbio_err);

strcpy(SecEntity.prot, "https");

// Get the voms string and auth information
Expand Down