Skip to content

Commit

Permalink
[Secsss] Fix upcast array used in pointer arithmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Nov 25, 2024
1 parent 216097d commit 50209b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdSecsss/XrdSecProtocolsss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ int XrdSecProtocolsss::getCred(XrdOucErrInfo *einfo,

// Extract out the loginid. This messy code is for backwards compatibility.
//
bP = prData.Data; eodP = dLen + (char *)&prData;
bP = prData.Data; eodP = prData.Data + dLen;
while(bP < eodP)
{idType = *bP++;
if (!XrdOucPup::Unpack(&bP, eodP, &idP, idSz) || !idP || *idP == 0)
Expand Down

0 comments on commit 50209b3

Please sign in to comment.