We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the XrdSecsssID::Register method we have this variable: int hOpt = (doRep ? Hash_replace : Hash_default) | Hash_dofree;
int hOpt = (doRep ? Hash_replace : Hash_default) | Hash_dofree;
and the following "Registry.Add" call rc = (Registry.Add(lid, idP, hOpt) ? 0 : 1);
rc = (Registry.Add(lid, idP, hOpt) ? 0 : 1);
However, this assigns the options variable (hOpt) to the LifeTime parameter of the Registry.Add function.
In order to pass the options and keep the default LifeTime, the call should be:
rc = (Registry.Add(lid, idP, 0, (XrdOucHash_Options) hOpt) ? 0 : 1);
The text was updated successfully, but these errors were encountered:
Fix wrong parameters passed to SSS Registry (Issue xrootd#689)
c1f8639
734fbda
48ec902
6aa690d
No branches or pull requests
In the XrdSecsssID::Register method we have this variable:
int hOpt = (doRep ? Hash_replace : Hash_default) | Hash_dofree;
and the following "Registry.Add" call
rc = (Registry.Add(lid, idP, hOpt) ? 0 : 1);
However, this assigns the options variable (hOpt) to the LifeTime parameter of the Registry.Add function.
In order to pass the options and keep the default LifeTime, the call should be:
rc = (Registry.Add(lid, idP, 0, (XrdOucHash_Options) hOpt) ? 0 : 1);
The text was updated successfully, but these errors were encountered: