Skip to content

Commit

Permalink
[XrdCl] Treat empty redirect response as error.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jun 29, 2018
1 parent 8bcad59 commit 3ab3ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCl/XrdClXRootDMsgHandler.cc
Expand Up @@ -402,7 +402,7 @@ namespace XrdCl
XRDCL_SMART_PTR_T<Message> msgPtr( pResponse );
pResponse = 0;

if( rsp->hdr.dlen < 4 )
if( rsp->hdr.dlen <= 4 )
{
log->Error( XRootDMsg, "[%s] Got invalid redirect response.",
pUrl.GetHostId().c_str() );
Expand Down

0 comments on commit 3ab3ce1

Please sign in to comment.