8006853: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout < 0
Reviewed-by: mullan
--- 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