Author: manjula Date: Sun Mar 2 23:33:23 2008 New Revision: 632968 URL: http://svn.apache.org/viewvc?rev=632968&view=rev Log: Fixing the segfault when sending large attachments through tcpmon.
Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c?rev=632968&r1=632967&r2=632968&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original) +++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Sun Mar 2 23:33:23 2008 @@ -221,6 +221,13 @@ buffer[read+1] = '\0'; buf_len = read; + + if(buf_len < cb_ctx->content_length) + { + AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, + "All the data in the message does not recieved"); + return NULL; + } } if (buffer) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]