]> granicus.if.org Git - apache/commitdiff
Merge r1775173 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 23 Dec 2016 12:33:29 +0000 (12:33 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 23 Dec 2016 12:33:29 +0000 (12:33 +0000)
Silence compiler warning:
"686: warning: 'ok' may be used uninitialized in
this function"
This is a false positive, because the value of "ok"
will only be used if stapling_get_cached_response()
sets "rsp" to non-NULL in which case it will always
have set "ok".

Submitted by: rjung
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1775826 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/ssl/ssl_util_stapling.c

diff --git a/STATUS b/STATUS
index 84a5a9cf188dc99f14a02b7066094d1d837e6f4d..d17e99f4d6ae4e1ae4642c215cc26b5fd1c8adfc 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -119,17 +119,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_ssl: Silence compiler warning
-     "686: warning: 'ok' may be used uninitialized in
-     this function"
-     This is a false positive, because the value of "ok"
-     will only be used if stapling_get_cached_response()
-     sets "rsp" to non-NULL in which case it will always
-     have set "ok".
-     trunk patch: http://svn.apache.org/r1775173
-     2.4.x patch: trunk works
-     +1: rjung, jim, ylavic
-
   *) core: remove isascci check before narrower checks in vhost checking
      trunk patch: http://svn.apache.org/r1775199
                   http://svn.apache.org/r1775664
index 413e40f8b42fdf2aaa4a609fdf51d70c90ef93cc..0737f43779bd5d70311227d1e124c89502b83a0c 100644 (file)
@@ -683,7 +683,7 @@ static int get_and_check_cached_response(server_rec *s, modssl_ctx_t *mctx,
                                          OCSP_RESPONSE **rsp, BOOL *pok,
                                          certinfo *cinf, apr_pool_t *p)
 {
-    BOOL ok;
+    BOOL ok = FALSE;
     int rv;
 
     AP_DEBUG_ASSERT(*rsp == NULL);