summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-17 11:42:45 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-17 11:42:45 +0000
commitef36d5cad3454ebe02fd137da84134d521d53e9b (patch)
tree2d0a463046f167a54e6d23317399f60c46ccc891
parenteac190160c689240df24e74047cd7fff07541b9e (diff)
downloadlasso-ef36d5cad3454ebe02fd137da84134d521d53e9b.tar.gz
lasso-ef36d5cad3454ebe02fd137da84134d521d53e9b.tar.xz
lasso-ef36d5cad3454ebe02fd137da84134d521d53e9b.zip
[XML] in lasso_node_export_to_paos_request check return value of lasso_node_get_xmlNode
-rw-r--r--lasso/xml/xml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
index 15cba52d..4350ff8d 100644
--- a/lasso/xml/xml.c
+++ b/lasso/xml/xml.c
@@ -296,6 +296,10 @@ lasso_node_export_to_paos_request(LassoNode *node, const char *issuer,
message = lasso_node_get_xmlNode(node, FALSE);
+ if (message == NULL) {
+ return NULL;
+ }
+
envelope = xmlNewNode(NULL, (xmlChar*)"Envelope");
soap_env_ns = xmlNewNs(envelope,
(xmlChar*)LASSO_SOAP_ENV_HREF, (xmlChar*)LASSO_SOAP_ENV_PREFIX);