From b37a5b8bb19f98755d3baf41b9a7af376e2c20f2 Mon Sep 17 00:00:00 2001 From: mrcsys Date: Wed, 24 May 2006 15:18:52 +0000 Subject: small bug allows core dump --- libcsoap/soap-server.c | 4 ++-- 1 file 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); -- cgit v1.1-32-gdbae