You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/09/24 06:24:37 UTC

svn commit: r578648 - /webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c

Author: samisa
Date: Sun Sep 23 21:24:35 2007
New Revision: 578648

URL: http://svn.apache.org/viewvc?rev=578648&view=rev
Log:
Fixed the logic to avoid segfault

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c?rev=578648&r1=578647&r2=578648&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c Sun Sep 23 21:24:35 2007
@@ -442,28 +442,27 @@
 				content_type = 
                     (axis2_char_t *) axiom_output_get_content_type(sender->om_output, 
                                                                    env);
-				if (AXIS2_TRUE !=  axis2_msg_ctx_get_is_soap_11(msg_ctx, env))
+				if (AXIS2_TRUE !=  axis2_msg_ctx_get_is_soap_11(msg_ctx, env) && 
+                    axutil_strcmp(soap_action, ""))
 				{
 					/* handle SOAP action for SOAP 1.2 case */
-					if (axutil_strcmp(soap_action, ""))
-					{
-						axis2_char_t *temp_content_type = NULL;
-						temp_content_type = axutil_stracat(env, 
-                                                           content_type, 
-                                                           ";action=\"");
-						content_type = temp_content_type;
-						temp_content_type = axutil_stracat(env, 
-                                                           content_type, 
-                                                           soap_action);
-						AXIS2_FREE(env->allocator, content_type);
-						content_type = temp_content_type;
-                        temp_content_type = axutil_stracat(env, 
-                                                           content_type, 
-                                                           "\"");
-					    AXIS2_FREE(env->allocator, content_type);
-					    content_type = temp_content_type;
-					}
-				}else
+                    axis2_char_t *temp_content_type = NULL;
+                    temp_content_type = axutil_stracat(env, 
+                                                       content_type, 
+                                                       ";action=\"");
+                    content_type = temp_content_type;
+                    temp_content_type = axutil_stracat(env, 
+                                                       content_type, 
+                                                       soap_action);
+                    AXIS2_FREE(env->allocator, content_type);
+                    content_type = temp_content_type;
+                    temp_content_type = axutil_stracat(env, 
+                                                       content_type, 
+                                                       "\"");
+                    AXIS2_FREE(env->allocator, content_type);
+                    content_type = temp_content_type;
+				}
+                else
 				{
 					content_type_deepl_copy = AXIS2_FALSE;
 				}



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org