]> granicus.if.org Git - apache/commitdiff
missed during c89-ifying in r1692432
authorGregg Lewis Smith <gsmith@apache.org>
Mon, 10 Aug 2015 03:40:24 +0000 (03:40 +0000)
committerGregg Lewis Smith <gsmith@apache.org>
Mon, 10 Aug 2015 03:40:24 +0000 (03:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1694951 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_switch.c

index bd0591a8c1b3c2d68611794e2fe4a61a56fe96ee..6a2f00934be24f1e9a8cb36d586f694a322830cd 100644 (file)
@@ -162,6 +162,7 @@ static int h2_protocol_switch(conn_rec *c, request_rec *r, server_rec *s,
         h2_ctx_protocol_set(ctx, protocol);
         
         if (r != NULL) {
+            apr_status_t status;
             /* Switching in the middle of a request means that
              * we have to send out the response to this one in h2
              * format. So we need to take over the connection
@@ -171,7 +172,7 @@ static int h2_protocol_switch(conn_rec *c, request_rec *r, server_rec *s,
             ap_remove_input_filter_byhandle(r->input_filters, "reqtimeout");
             
             /* Ok, start an h2_conn on this one. */
-            apr_status_t status = h2_conn_rprocess(r);
+            status = h2_conn_rprocess(r);
             if (status != DONE) {
                 /* Nothing really to do about this. */
                 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, status, r,