summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mrcsys2006-05-24 15:18:52 +0000
committerGravatar mrcsys2006-05-24 15:18:52 +0000
commitb37a5b8bb19f98755d3baf41b9a7af376e2c20f2 (patch)
tree512fcf8b11de3489fcb3f9d736d7931e7ac05098
parent57abe3302f7ea79ccd23d08bcd8adac82ca052a9 (diff)
downloadcsoap-b37a5b8bb19f98755d3baf41b9a7af376e2c20f2.tar.gz
csoap-b37a5b8bb19f98755d3baf41b9a7af376e2c20f2.tar.bz2
small bug allows core dump
-rw-r--r--libcsoap/soap-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcsoap/soap-server.c b/libcsoap/soap-server.c
index d2e577f..9c77070 100644
--- a/libcsoap/soap-server.c
+++ b/libcsoap/soap-server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: soap-server.c,v 1.24 2006/05/15 06:41:34 m0gg Exp $
+* $Id: soap-server.c,v 1.25 2006/05/24 15:18:52 mrcsys Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -123,7 +123,7 @@ _soap_server_send_ctx(httpd_conn_t * conn, SoapCtx * ctx)
char strbuffer[32];
part_t *part;
- if (ctx->env == NULL || ctx->env->root == NULL)
+ if (ctx->env == NULL || ctx->env->root == NULL || ctx->env->root->doc == NULL)
return;
xmlThrDefIndentTreeOutput(1);