summaryrefslogtreecommitdiffstats
path: root/libcsoap
diff options
context:
space:
mode:
authorGravatar snowdrop2005-04-18 20:52:26 +0000
committerGravatar snowdrop2005-04-18 20:52:26 +0000
commit3cb6ed195c1c2a3e45014e31f2d923eabd88829f (patch)
treea3f2a2b4628cd7690a2a5c91599e455a900dbaeb /libcsoap
parentc00f5c34425c3b93279bfbfa73640dcd256e8caa (diff)
downloadcsoap-3cb6ed195c1c2a3e45014e31f2d923eabd88829f.tar.gz
csoap-3cb6ed195c1c2a3e45014e31f2d923eabd88829f.tar.bz2
included the check for errcode = 200before_patch_01
Diffstat (limited to 'libcsoap')
-rw-r--r--libcsoap/soap-client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcsoap/soap-client.c b/libcsoap/soap-client.c
index fa65864..b704766 100644
--- a/libcsoap/soap-client.c
+++ b/libcsoap/soap-client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: soap-client.c,v 1.14 2004/11/02 23:09:26 snowdrop Exp $
+* $Id: soap-client.c,v 1.15 2005/04/18 20:52:26 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -244,8 +244,11 @@ herror_t
return herror_new("_soap_client_build_result",
GENERAL_INVALID_PARAM, "Empty response from server");
+ if (res->errcode != 200)
+ return herror_new("_soap_client_build_result",
+ GENERAL_INVALID_PARAM, "HTTP code is not 200 OK");
- err = soap_env_new_from_stream(res->in, env);
+ err = soap_env_new_from_stream(res->in, env);
if (err != H_OK) {
return err;