axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r369409 - in /webservices/axis2/trunk/c/modules/core: engine/conf.c phaseresolver/phase_resolver.c
Date Mon, 16 Jan 2006 09:28:50 GMT
Author: samisa
Date: Mon Jan 16 01:28:43 2006
New Revision: 369409

URL: http://svn.apache.org/viewcvs?rev=369409&view=rev
Log:
Added more fixes to seg faults

Modified:
    webservices/axis2/trunk/c/modules/core/engine/conf.c
    webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c

Modified: webservices/axis2/trunk/c/modules/core/engine/conf.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/conf.c?rev=369409&r1=369408&r2=369409&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/conf.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/conf.c Mon Jan 16 01:28:43 2006
@@ -1491,6 +1491,7 @@
                                 struct axis2_module_desc *module) 
 {
     axis2_conf_impl_t *config_impl = NULL;
+    axis2_qname_t *module_qname = NULL;
     
     axis2_status_t status = AXIS2_FAILURE;
     AXIS2_FUNC_PARAM_CHECK(conf, env, AXIS2_FAILURE);
@@ -1509,8 +1510,11 @@
         if(!config_impl->modules)
             return AXIS2_FAILURE;
     }
-    axis2_hash_set(config_impl->modules, AXIS2_MODULE_DESC_GET_NAME(module, env), 
-        sizeof(axis2_qname_t), module);
+
+    module_qname = AXIS2_MODULE_DESC_GET_NAME(module, env);
+    if (module_qname)
+        axis2_hash_set(config_impl->modules, AXIS2_QNAME_TO_STRING(module_qname, env),

+            AXIS2_HASH_KEY_STRING, module);
     
     return AXIS2_SUCCESS;
 }

Modified: webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c?rev=369409&r1=369408&r2=369409&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c (original)
+++ webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c Mon Jan 16 01:28:43
2006
@@ -285,7 +285,10 @@
     axis2_hash_t *ops = NULL;
     
     resolver_impl = AXIS2_INTF_TO_IMPL(phase_resolver);
-    
+   
+    if (!(resolver_impl->svc))
+        return AXIS2_FAILURE;
+
     ops = AXIS2_SVC_GET_OPS(resolver_impl->svc, env);
     
     for (index_i = axis2_hash_first (ops, env); index_i; index_i = 



Mime
View raw message