commit | 98b8526d26eb5d2f97df9b2487ebe913009aa40c | [log] [tgz] |
---|---|---|
author | Rafael Bronzeri <rafaelb@apache.org> | Wed Jul 06 03:38:47 2016 +0000 |
committer | Rafael Bronzeri <rafaelb@apache.org> | Wed Jul 06 03:38:47 2016 +0000 |
tree | 3e600f7e4980b4d4b24c21cb1a3129195b49743b | |
parent | 45dad29fce65f4996aa2950f07f8e57be58f426b [diff] |
Fixed Bug: AXIS2C-1674. Simple HttpServer crashes when reading directories in Windows 2012 Server
diff --git a/util/src/stream.c b/util/src/stream.c index 3f6a711..3592538 100644 --- a/util/src/stream.c +++ b/util/src/stream.c
@@ -102,6 +102,14 @@ axutil_stream_t *stream, const axutil_env_t *env) { + AXIS2_ENV_CHECK(env, AXIS2_FAILURE); + + //avoid access violation / segment fault + if (stream == NULL) + { + return; + } + switch(stream->stream_type) { case AXIS2_STREAM_BASIC: