Browse Source

HPCC-12950 Prevent seg fault when requesting ESDL lists

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>
rpastrana 10 years ago
parent
commit
ebb108de87
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tools/esdlcmd/esdl-publish.cpp

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

@@ -696,14 +696,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");
 
@@ -764,14 +764,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");