Added configuration before file/folder overwrite. Fixed some small mistakes. Fixes...
[public/netxms.git] / src / server / core / session.cpp
index 77b44a9..f28c2ff 100644 (file)
@@ -13323,7 +13323,7 @@ void ClientSession::uploadUserFileToAgent(NXCPMessage *request)
                   }
                   else
                   {
-                     msg.setField(VID_RCC, rcc);
+                     msg.setField(VID_RCC, AgentErrorToRCC(rcc));
                      debugPrintf(6, _T("ClientSession::getAgentFolderContent: Error on agent: %d"), rcc);
                   }
                }