Skip to content
New issue

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

Fix potential crash in XrdPosixXrootdPath::P2L #740

Merged
merged 1 commit into from
Jun 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/XrdPosix/XrdPosixXrootdPath.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ const char *XrdPosixXrootPath::P2L(const char *who,
int cgiLen, lfnLen, pfnLen, pfxLen, n;
bool notOurs = true;

// Check if we need to do any translation at all
//
if (!XrdPosixGlobals::theN2N && !ponly) return inP;

// Preset repP to zero to indicate no translation required, nothing to free
//
relP = 0;

// Check if we need to do any translation at all
//
if (!XrdPosixGlobals::theN2N && !ponly) return inP;

// If this is a protocol we support, then we can convert the path
//
for (int i = 0; i < ptEnts && XrdPosixGlobals::protoTab[i].name; i++)
Expand Down