8006853: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout < 0

Reviewed-by: mullan
This commit is contained in:
Jason Uh 2013-02-28 16:36:01 -08:00
parent e161c78dc3
commit 618b36f5eb

View File

@ -89,7 +89,7 @@ public final class OCSP {
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