Skip to content

Commit

Permalink
Merge pull request #924 from dalegr/Group-strlcpy
Browse files Browse the repository at this point in the history
Fix strlcpy for Group null-string in XrdOfsTPC.
  • Loading branch information
abh3 committed Mar 18, 2019
2 parents 5fbeb9c + 3f11948 commit d7a5ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdOfs/XrdOfsTPC.cc
Expand Up @@ -135,7 +135,7 @@ int XrdOfsTPCAllow::Match(const XrdSecEntity *Who, const char *Host)
if (Who->grps)
{char gBuff[1028], Group[64];
strlcpy(gBuff+1, Who->grps, sizeof(gBuff)-1); *gBuff = ' ';
strlcpy(Group+1, theGN, sizeof(Group)); *Group = ' ';
strlcpy(Group+1, theGN, sizeof(Group)-1); *Group = ' ';
return strstr(gBuff, Group) != 0;
} else return 0;
return 1;
Expand Down

0 comments on commit d7a5ba3

Please sign in to comment.