]> granicus.if.org Git - apache/commitdiff
* Only report success, if had real one.
authorRuediger Pluem <rpluem@apache.org>
Mon, 12 Jun 2017 12:53:38 +0000 (12:53 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 12 Jun 2017 12:53:38 +0000 (12:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1798457 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_stapling.c

index 725101f63332715675e3f69d86f0365e2fc34ce6..6ea9c6ba04d1e87a31ea58da5666b74501e13ecb 100644 (file)
@@ -805,11 +805,11 @@ static int stapling_cb(SSL *ssl, void *arg)
                                          conn->pool);
             stapling_refresh_mutex_off(s);
 
-            if (rv == TRUE) {
+            if ((rv == TRUE) && (ok == TRUE) && rsp) {
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(03040)
                              "stapling_cb: success renewing response");
             }
-            else {
+            else if (rv == FALSE) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(01955)
                              "stapling_cb: fatal error renewing response");
                 return SSL_TLSEXT_ERR_ALERT_FATAL;