Skip to content

Commit

Permalink
[Server] Correct stream specification handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jun 20, 2018
1 parent 3e9bf34 commit 82f0285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdOfs/XrdOfsTPC.cc
Expand Up @@ -615,7 +615,7 @@ int XrdOfsTPC::Validate(XrdOfsTPC **theTPC, XrdOfsTPC::Facts &Args)
if (tpcStr)
{char *eP;
long nStrm = strtol(tpcStr, &eP, 10);
if (nStrm < 0 || !(*eP))
if (nStrm < 0 || *eP)
return Death(Args, "tpc streams value is invalid", EINVAL);
if (nStrm > tcpSMax) nStrm = tcpSMax;
sVal = static_cast<char>(nStrm);
Expand Down Expand Up @@ -652,7 +652,7 @@ int XrdOfsTPC::Validate(XrdOfsTPC **theTPC, XrdOfsTPC::Facts &Args)

// Set number of streams to use
//
if (sVal) myTPC->Info.SetStreams(sVal);
if (sVal > 1) myTPC->Info.SetStreams(sVal);

// All done
//
Expand Down

0 comments on commit 82f0285

Please sign in to comment.