Skip to content

Commit

Permalink
[Server] Follow protocol spec when returning file compression info. F…
Browse files Browse the repository at this point in the history
…ixes #721
  • Loading branch information
abh3 committed Jun 5, 2018
1 parent fc8bf5d commit 4f57d3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/XrdXrootd/XrdXrootdXeq.cc
Expand Up @@ -1386,9 +1386,8 @@ int XrdXrootdProtocol::do_Open()
}
else {int cpsize;
fp->getCXinfo((char *)myResp.cptype, cpsize);
if (cpsize) {myResp.cpsize = static_cast<kXR_int32>(htonl(cpsize));
resplen = sizeof(myResp);
} else myResp.cpsize = 0;
myResp.cpsize = static_cast<kXR_int32>(htonl(cpsize));
resplen = sizeof(myResp);
}

// If client wants a stat in open, return the stat information
Expand Down

0 comments on commit 4f57d3e

Please sign in to comment.