< prev index next >

modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/imports.c

Print this page
rev 11102 : 8227402: Improve XSLT processing
Reviewed-by: kcr, rhalade

@@ -128,11 +128,12 @@
     sec = xsltGetDefaultSecurityPrefs();
     if (sec != NULL) {
     int secres;
 
     secres = xsltCheckRead(sec, NULL, URI);
-    if (secres == 0) {
+    if (secres <= 0) {
+            if (secres == 0)
         xsltTransformError(NULL, NULL, NULL,
          "xsl:import: read rights for %s denied\n",
                  URI);
         goto error;
     }
< prev index next >