Skip to content

Commit

Permalink
Pass correct total length in iovec to Send().
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Dec 2, 2015
1 parent 50e866c commit 0047f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdXrootd/XrdXrootdResponse.cc
Expand Up @@ -170,7 +170,7 @@ int XrdXrootdResponse::Send(XResponseType rcode, int info,
Resp.status = static_cast<kXR_unt16>(htons(rcode));
Resp.dlen = static_cast<kXR_int32>(htonl((dlen+sizeof(xbuf))));

if (Link->Send(RespIO, 3, sizeof(Resp) + dlen) < 0)
if (Link->Send(RespIO, 3, sizeof(Resp) + dlen + sizeof(xbuf)) < 0)
return Link->setEtext("send failure");
return 0;
}
Expand Down

0 comments on commit 0047f61

Please sign in to comment.