Skip to content

Commit

Permalink
[Utils] Don't hide true error when loading a plugin w/o an alternate.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jun 23, 2020
1 parent d01ee56 commit 1d57148
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/XrdOuc/XrdOucPinLoader.cc
Expand Up @@ -230,11 +230,16 @@ bool XrdOucPinLoader::LoadLib(int mcnt)
if (eDest) eDest->Say("Plugin ", dName, " ", theLib,
" not found; falling back to using ", altLib);

// Readjust library pointers
// if we have an alternative, readjust library pointers
//
free(theLib);
theLib = altLib;
altLib = 0;
if (altLib)
{free(theLib);
theLib = altLib;
altLib = 0;
} else {
badLib = true;
return false;
}

// Try once more
//
Expand Down

0 comments on commit 1d57148

Please sign in to comment.