From e5e007700728ef91240bc453dcac06bde8413732 Mon Sep 17 00:00:00 2001 From: James Walder Date: Thu, 26 Nov 2020 14:32:05 +0000 Subject: [PATCH] Fix case where 0 streams is requested. Fix case where stream_req is 0, which should be interpreted as a single stream. --- src/XrdTpc/XrdTpcTPC.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrdTpc/XrdTpcTPC.cc b/src/XrdTpc/XrdTpcTPC.cc index 1fcd1df2380..9fd3b9c64fd 100644 --- a/src/XrdTpc/XrdTpcTPC.cc +++ b/src/XrdTpc/XrdTpcTPC.cc @@ -701,7 +701,7 @@ int TPCHandler::ProcessPullReq(const std::string &resource, XrdHttpExtReq &req) logTransferEvent(LogMask::Info, rec, "INVALID_REQUEST", msg); return req.SendSimpleResp(rec.status, NULL, NULL, msg, 0); } - streams = streams == 0 ? 1 : stream_req; + streams = stream_req == 0 ? 1 : stream_req; } } rec.streams = streams;