h2_proxy_stream *stream;
apr_uri_t puri;
const char *authority, *scheme, *path;
+ apr_status_t status;
stream = apr_pcalloc(r->pool, sizeof(*stream));
stream->req = h2_req_create(1, stream->pool, 0);
- apr_uri_parse(stream->pool, url, &puri);
+ status = apr_uri_parse(stream->pool, url, &puri);
+ if (status != APR_SUCCESS)
+ return status;
+
scheme = (strcmp(puri.scheme, "h2")? "http" : "https");
authority = puri.hostname;
if (!ap_strchr_c(authority, ':') && puri.port
apr_status_t status;
status = open_stream(session, url, r, &stream);
- if (status == OK) {
+ if (status == APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03381)
"process stream(%d): %s %s%s, original: %s",
stream->id, stream->req->method,
apr_table_setn(r->notes, "proxy-source-port", apr_psprintf(r->pool, "%hu",
ctx->p_conn->connection->local_addr->port));
status = h2_proxy_session_submit(session, url, r);
- if (status != OK) {
+ if (status != APR_SUCCESS) {
ap_log_cerror(APLOG_MARK, APLOG_ERR, status, r->connection, APLOGNO(03351)
"pass request body failed to %pI (%s) from %s (%s)",
ctx->p_conn->addr, ctx->p_conn->hostname ?