Commit ba356520 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

Reverse the order of 2 tests to potentially save a few cycles.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1851198 13f79535-47bb-0310-9956-ffa450edef68
parent 28e4c595
Loading
Loading
Loading
Loading
+4 −3
Changes for server/vhost.c: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -1042,10 +1042,11 @@ static int update_server_from_aliases(request_rec *r)
            }
        }

        /* Fallback: does it match the virthost from the sar? */
        if (!strcasecmp(host, sar->virthost)) {
            /* only the first match is used */
        /* Fallback: does it match the virthost from the sar?
         * (only the first match is used)
         */
        if (virthost_s == NULL) {
            if (!strcasecmp(host, sar->virthost)) {
                virthost_s = s;
            }
        }