changeset 7063:7246a6e4dd5a

8006853: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout < 0 Reviewed-by: mullan
author juh
date Thu, 28 Feb 2013 16:36:01 -0800
parents 7d272e524768
children def2e05299b7
files src/share/classes/sun/security/provider/certpath/OCSP.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/OCSP.java	Thu Feb 28 12:39:29 2013 +0000
+++ b/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