Kaydet (Commit) 2fed793e authored tarafından Michael Stahl's avatar Michael Stahl

xmlsecurity: remove some dead code that is guaranteed to crash

Fortunately currently XMLSEC_NO_XSLT is defined anyway, but better
remove it.

Change-Id: I1dd2aa57356274dacc99cc7def2d308884263289
üst 4bd0739b
...@@ -125,12 +125,10 @@ SAXHelper::SAXHelper( ) ...@@ -125,12 +125,10 @@ SAXHelper::SAXHelper( )
if( m_pParserCtxt == nullptr ) if( m_pParserCtxt == nullptr )
{ {
#ifndef XMLSEC_NO_XSLT
xsltCleanupGlobals() ;
#endif
// see issue i74334, we cannot call xmlCleanupParser when libxml is still used // see issue i74334, we cannot call xmlCleanupParser when libxml is still used
// in other parts of the office. // in other parts of the office.
// xmlCleanupParser() ; // xmlCleanupParser() ;
// and neither can we call xsltCleanupGlobals()
throw cssu::RuntimeException() ; throw cssu::RuntimeException() ;
} }
else else
...@@ -146,12 +144,10 @@ SAXHelper::SAXHelper( ) ...@@ -146,12 +144,10 @@ SAXHelper::SAXHelper( )
{ {
xmlFreeParserCtxt( m_pParserCtxt ) ; xmlFreeParserCtxt( m_pParserCtxt ) ;
#ifndef XMLSEC_NO_XSLT
xsltCleanupGlobals() ;
#endif
// see issue i74334, we cannot call xmlCleanupParser when libxml is still used // see issue i74334, we cannot call xmlCleanupParser when libxml is still used
// in other parts of the office. // in other parts of the office.
// xmlCleanupParser() ; // xmlCleanupParser() ;
// and neither can we call xsltCleanupGlobals()
m_pParserCtxt = nullptr ; m_pParserCtxt = nullptr ;
throw cssu::RuntimeException() ; throw cssu::RuntimeException() ;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment