Skip to content

Commit

Permalink
Merge pull request #347 from jthiltges/gsi-auth-strdup
Browse files Browse the repository at this point in the history
With GSI auth, free Entity variable before replacing it from the cache
  • Loading branch information
gganis committed Mar 23, 2016
2 parents 422ae9c + 9fd4616 commit b711436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdSecgsi/XrdSecProtocolgsi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1948,6 +1948,7 @@ int XrdSecProtocolgsi::Authenticate(XrdSecCredentials *cred,
} else {
// Fetch a copy of the saved entity
int slen = 0;
FreeEntity(&Entity);
CopyEntity((XrdSecEntity *) cent->buf1.buf, &Entity, &slen);
// Notify
DEBUG("Got Entity from cacheAuthzFun ("<<slen<<" bytes)");
Expand Down

0 comments on commit b711436

Please sign in to comment.