Skip to content

Commit

Permalink
[SSS] Revert part of commit 316300c for backward compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jun 22, 2021
1 parent 7d58799 commit 2492454
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/XrdSecsss/XrdSecsssID.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ XrdSecsssID::XrdSecsssID(authType aType, const XrdSecEntity *idP,
// Generate a default identity
//
if (idP) defaultID = new XrdSecsssEnt(idP);
else defaultID = genID(!isStatic);
else defaultID = genID(isStatic);

// Establish a pointer to this object.
//
Expand Down Expand Up @@ -192,7 +192,7 @@ XrdSecsssEnt *XrdSecsssID::genID(bool Secure)

XrdSecsssID *XrdSecsssID::getObj(authType &aType, XrdSecsssEnt *&idP)
{
bool Secure = true;
bool sType = false;

// Prevent changes
//
Expand All @@ -202,13 +202,13 @@ XrdSecsssID *XrdSecsssID::getObj(authType &aType, XrdSecsssEnt *&idP)
//
if (!IDMapper)
{aType = idStatic;
Secure= false;
sType = true;
idP = 0;
} else {
aType = IDMapper->myAuth;
idP = IDMapper->defaultID;
}
if (!idP) idP = genID(Secure);
if (!idP) idP = genID(sType);

// Return result
//
Expand Down

0 comments on commit 2492454

Please sign in to comment.