8006853: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout < 0
authorjuh
Thu, 28 Feb 2013 16:36:01 -0800
changeset 16044 85f90a877d17
parent 16043 0c9424895efb
child 16045 9d08c3b9a6a0
8006853: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout < 0 Reviewed-by: mullan
jdk/src/share/classes/sun/security/provider/certpath/OCSP.java
--- a/jdk/src/share/classes/sun/security/provider/certpath/OCSP.java	Thu Feb 28 12:39:29 2013 +0000
+++ b/jdk/src/share/classes/sun/security/provider/certpath/OCSP.java	Thu Feb 28 16:36:01 2013 -0800
@@ -89,7 +89,7 @@
                 new GetIntegerAction("com.sun.security.ocsp.timeout",
                                      DEFAULT_CONNECT_TIMEOUT));
         if (tmp < 0) {
-            tmp = DEFAULT_CONNECT_TIMEOUT;
+            return DEFAULT_CONNECT_TIMEOUT;
         }
         // Convert to milliseconds, as the system property will be
         // specified in seconds