From 3ab3ce18187868237d705185e73913c779ea45f5 Mon Sep 17 00:00:00 2001 From: Michal Simon Date: Mon, 25 Jun 2018 11:59:40 +0200 Subject: [PATCH] [XrdCl] Treat empty redirect response as error. --- src/XrdCl/XrdClXRootDMsgHandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrdCl/XrdClXRootDMsgHandler.cc b/src/XrdCl/XrdClXRootDMsgHandler.cc index a814c7a057b..f3367f5e5d6 100644 --- a/src/XrdCl/XrdClXRootDMsgHandler.cc +++ b/src/XrdCl/XrdClXRootDMsgHandler.cc @@ -402,7 +402,7 @@ namespace XrdCl XRDCL_SMART_PTR_T 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() );