Commit 5d808a59 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

fix some calls to apr_pool_userdata_get()

(foo** just doesn't work the way we sometimes might want :( )


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90725 13f79535-47bb-0310-9956-ffa450edef68
parent 0adbf1ad
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -985,8 +985,8 @@ AP_DECLARE(int) ap_location_walk(request_rec *r)
	return OK;
    }

    apr_pool_userdata_get(&entry_uri, "ap_location_walk::last_uri", r->pool);
    apr_pool_userdata_get(&(void*)loc_done, "ap_location_walk::loc_done", r->pool);
    apr_pool_userdata_get((void **)&entry_uri, "ap_location_walk::last_uri", r->pool);
    apr_pool_userdata_get((void **)&loc_done, "ap_location_walk::loc_done", r->pool);

    /* If we have an ap_location_walk::last_uri that matches r->uri,
     * and the vhost's list of locations hasn't changed,
@@ -1064,7 +1064,7 @@ AP_DECLARE(int) ap_location_walk(request_rec *r)
         * with other walkers who reset to the vhost default, but we will
         * leave this escape in for simpler modules.
         */
        apr_pool_userdata_get(&per_uri_defaults, "ap_location_walk::dir_merged",
        apr_pool_userdata_get((void **)&per_uri_defaults, "ap_location_walk::dir_merged",
                              r->pool);
        if (per_uri_defaults == r->per_dir_config)
            return OK;
@@ -1072,7 +1072,7 @@ AP_DECLARE(int) ap_location_walk(request_rec *r)
        /* Well, we will need our per_uri_defaults from the last location walk. 
         * after all.
         */
        apr_pool_userdata_get(&per_uri_defaults, "ap_location_walk::dir_conf",
        apr_pool_userdata_get((void **)&per_uri_defaults, "ap_location_walk::dir_conf",
                              r->pool);
    }