summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2016-11-28 20:26:54 +0900
committersangwan.kwon <sangwan.kwon@samsung.com>2016-11-29 10:49:15 +0900
commit95ad4231b8d925d0935e078a111f38ea1be94b0a (patch)
tree8ba85e516f6f5fc981f6b2d15f853c12901bed1f
parentdaf2259d9baccb7027b2037175f6e85badc1e426 (diff)
downloadxmlsec1-95ad4231b8d925d0935e078a111f38ea1be94b0a.tar.gz
xmlsec1-95ad4231b8d925d0935e078a111f38ea1be94b0a.tar.bz2
xmlsec1-95ad4231b8d925d0935e078a111f38ea1be94b0a.zip
Related svace defect exist: null pointer dereferencing(xpathObj) Change-Id: I9caa9c96466ea3e93e535d893cd4340a2e92021f Signed-off-by: Kyungwook Tak <k.tak@samsung.com> (cherry picked from commit 3c90aa6afef99bb7af54c7803d7e4ccb815d9d20)
-rw-r--r--src/xpath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xpath.c b/src/xpath.c
index 2419f133..43cdf33a 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -279,6 +279,8 @@ xmlSecXPathDataExecute(xmlSecXPathDataPtr data, xmlDocPtr doc, xmlNodePtr hereNo
return(NULL);
}
break;
+ default:
+ return(NULL);
}
/* sometime LibXML2 returns an empty nodeset or just NULL, we want