From: Ruediger Pluem Date: Mon, 12 Jun 2017 12:53:38 +0000 (+0000) Subject: * Only report success, if had real one. X-Git-Tag: 2.5.0-alpha~377 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f926fe46eee4aeedc241cfb5ada026356432414f;p=thirdparty%2Fapache%2Fhttpd.git * Only report success, if had real one. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1798457 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_util_stapling.c b/modules/ssl/ssl_util_stapling.c index 725101f6333..6ea9c6ba04d 100644 --- a/modules/ssl/ssl_util_stapling.c +++ b/modules/ssl/ssl_util_stapling.c @@ -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;