axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r892166 - /webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
Date Fri, 18 Dec 2009 07:56:26 GMT
Author: damitha
Date: Fri Dec 18 07:56:20 2009
New Revision: 892166

URL: http://svn.apache.org/viewvc?rev=892166&view=rev
Log:
Fixed a seg fault by checking for operation context in case of get request

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c?rev=892166&r1=892165&r2=892166&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c Fri Dec
18 07:56:20 2009
@@ -3468,8 +3468,15 @@
         axis2_op_ctx_t *op_ctx = NULL;
         axis2_msg_ctx_t *in_msg_ctx = NULL;
         op_ctx = axis2_msg_ctx_get_op_ctx(msg_ctx, env);
-        in_msg_ctx = axis2_op_ctx_get_msg_ctx(op_ctx, env, AXIS2_WSDL_MESSAGE_LABEL_IN);
-        ht = axis2_msg_ctx_get_property_value(msg_ctx, env, AXIS2_TRANSPORT_SESSION_TABLE);
+        if(op_ctx)
+        {
+            in_msg_ctx = axis2_op_ctx_get_msg_ctx(op_ctx, env, AXIS2_WSDL_MESSAGE_LABEL_IN);
+            if(in_msg_ctx)
+            {
+                ht = axis2_msg_ctx_get_property_value(in_msg_ctx, env, 
+                        AXIS2_TRANSPORT_SESSION_TABLE);
+            }
+        }
         if(!ht)
         {
             return NULL;



Mime
View raw message