Explorar o código

HPCC-14896 Always fill in destFileOut for getDropZoneInfoByIP()

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
Mark Kelly %!s(int64=9) %!d(string=hai) anos
pai
achega
ccc722318f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      esp/services/ws_fs/ws_fsService.cpp

+ 3 - 0
esp/services/ws_fs/ws_fsService.cpp

@@ -2280,6 +2280,9 @@ bool CFileSprayEx::onReplicate(IEspContext &context, IEspReplicate &req, IEspRep
 
 void CFileSprayEx::getDropZoneInfoByIP(const char* ip, const char* destFileIn, StringBuffer& destFileOut, StringBuffer& mask)
 {
+    if (destFileIn && *destFileIn)
+        destFileOut.set(destFileIn);
+
     if (!ip || !*ip)
         return;