瀏覽代碼

Merge pull request #6931 from rpastrana/HPCC-12950-listscausesegfault

HPCC-12950 Prevent seg fault when requesting ESDL lists

Reviewed-By: Russ Whitehead <william.whitehead@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 年之前
父節點
當前提交
6c570a32b7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      tools/esdlcmd/esdl-publish.cpp

+ 4 - 4
tools/esdlcmd/esdl-publish.cpp

@@ -665,14 +665,14 @@ public:
 
         Owned<IClientListESDLDefinitionsResponse> resp = esdlConfigClient->ListESDLDefinitions(req);
 
-
         if (resp->getExceptions().ordinality()>0)
         {
             EsdlCmdHelper::outputMultiExceptions(resp->getExceptions());
             return 1;
         }
 
-        IArrayOf<IConstESDLDefinition> defs = resp->getDefinitions();
+        IArrayOf<IConstESDLDefinition> & defs = resp->getDefinitions();
+
         if (defs.length() > 0)
             fprintf(stdout, "\nESDL Definitions found:\n");
 
@@ -733,14 +733,14 @@ public:
 
         Owned<IClientListESDLBindingsResponse> resp = esdlConfigClient->ListESDLBindings(req);
 
-
         if (resp->getExceptions().ordinality()>0)
         {
             EsdlCmdHelper::outputMultiExceptions(resp->getExceptions());
             return 1;
         }
 
-        IArrayOf<IConstESDLBinding> binds = resp->getBindings();
+        IArrayOf<IConstESDLBinding> & binds = resp->getBindings();
+
         if (binds.length() > 0)
             fprintf(stdout, "\nESDL Bindings found:\n");