Bladeren bron

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 jaren geleden
bovenliggende
commit
6c570a32b7
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  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");