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 se...@apache.org on 2008/03/10 11:28:29 UTC

svn commit: r635511 - /webservices/axis2/trunk/c/util/src/stream.c

Author: senaka
Date: Mon Mar 10 03:28:18 2008
New Revision: 635511

URL: http://svn.apache.org/viewvc?rev=635511&view=rev
Log:
Adding param check to prevent a segfault if NULL stream was passed due to failure in creating stream.

Modified:
    webservices/axis2/trunk/c/util/src/stream.c

Modified: webservices/axis2/trunk/c/util/src/stream.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/stream.c?rev=635511&r1=635510&r2=635511&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/stream.c (original)
+++ webservices/axis2/trunk/c/util/src/stream.c Mon Mar 10 03:28:18 2008
@@ -651,6 +651,8 @@
     int len = 0;
 
     AXIS2_ENV_CHECK(env, AXIS2_CRITICAL_FAILURE);
+    /* Added to prevent a segfault */
+    AXIS2_PARAM_CHECK(env->error, stream, -1);
 
     if (-1 == stream->socket)
     {



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