Skip to content

Commit

Permalink
Deny access if the secXtractor fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ffurano committed Dec 12, 2016
1 parent ff6ae86 commit 407f743
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/XrdHttp/XrdHttpProtocol.cc
Expand Up @@ -333,8 +333,12 @@ int XrdHttpProtocol::GetVOMSData(XrdLink *lp) {
// This will fill the XrdSec thing with VOMS info, if VOMS is
// installed. If we have no sec extractor then do nothing, just plain https
// will work.
if (secxtractor)
secxtractor->GetSecData(lp, SecEntity, ssl);
if (secxtractor) {
int r = secxtractor->GetSecData(lp, SecEntity, ssl);
if (r)
TRACEI(ALL, " Certificate data extraction failed: " << peer_cert->name << " Failed. err: " << r);
return r;
}

return 0;
}
Expand Down

0 comments on commit 407f743

Please sign in to comment.