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 di...@apache.org on 2006/11/21 19:43:43 UTC

svn commit: r477812 - /webservices/axis2/trunk/c/modules/core/context/ctx.c

Author: dinesh
Date: Tue Nov 21 10:43:43 2006
New Revision: 477812

URL: http://svn.apache.org/viewvc?view=rev&rev=477812
Log:
fixed:simple axis server segfaults on REST get requests

Modified:
    webservices/axis2/trunk/c/modules/core/context/ctx.c

Modified: webservices/axis2/trunk/c/modules/core/context/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/ctx.c?view=diff&rev=477812&r1=477811&r2=477812
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Tue Nov 21 10:43:43 2006
@@ -168,10 +168,15 @@
             axis2_property_t *temp_value = 
                 axis2_hash_get(ctx_impl->non_persistent_map, key, 
                     AXIS2_HASH_KEY_STRING);
-            if (temp_value && temp_value != value)
-            {
-                AXIS2_PROPERTY_FREE(temp_value, env);
-            }
+			if (temp_value)
+			{
+				void *temp_value_value = AXIS2_PROPERTY_GET_VALUE (temp_value, env);
+				void *value_value = AXIS2_PROPERTY_GET_VALUE (value, env);
+				if (temp_value_value != value_value)
+				{
+					AXIS2_PROPERTY_FREE(temp_value, env);
+				}
+			}
         }
         if (ctx_impl->non_persistent_map)
             axis2_hash_set(ctx_impl->non_persistent_map, key,



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