浏览代码

HPCC-16271 Dafilesrv copyfile exception crash

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
Mark Kelly 8 年之前
父节点
当前提交
04ccc235e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/remote/sockfile.cpp

+ 1 - 1
common/remote/sockfile.cpp

@@ -2991,7 +2991,7 @@ inline void appendCmdErr(MemoryBuffer &reply, RemoteFileCommandType e, int code,
     // RFCOpenIO needs remapping to non-zero for client to know its an error
     // perhaps we should use code here instead of e ?
     unsigned err = e;
-    if ((RemoteFileCommandType)err == RFCopenIO)
+    if (e == RFCopenIO)
         err = RFSERR_OpenFailed;
     reply.append(err);
     reply.append(msg.str());