You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2010/01/13 07:43:50 UTC

svn commit: r898659 - /webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c

Author: nandika
Date: Wed Jan 13 06:43:50 2010
New Revision: 898659

URL: http://svn.apache.org/viewvc?rev=898659&view=rev
Log:
http_worker.c crash error fixed

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c?rev=898659&r1=898658&r2=898659&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c Wed Jan 13 06:43:50 2010
@@ -244,8 +244,10 @@
         cookie_header_value = axis2_http_header_get_value(cookie_header, env);
         session_id = axis2_http_transport_utils_get_session_id_from_cookie(env, 
                 cookie_header_value);
+		if(session_id)
         session_str = env->get_session_fn((void *) conf_ctx, session_id);
-        axis2_http_transport_utils_set_session(env, msg_ctx, session_str);
+		if(session_str)
+		axis2_http_transport_utils_set_session(env, msg_ctx, session_str);
     }
     
     /*connection_header = axis2_http_simple_request_get_first_header(simple_request, env,