From: Christophe Jaillet Date: Fri, 5 Feb 2016 22:24:38 +0000 (+0000) Subject: Remove now useless apr_pstrdup. X-Git-Tag: 2.5.0-alpha~2194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1da7ea92bdbf4be223e5155f471378079e8c35;p=thirdparty%2Fapache%2Fhttpd.git Remove now useless apr_pstrdup. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728748 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 27cd706ce4c..6bc597eb6e1 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -614,7 +614,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) r->status = HTTP_BAD_REQUEST; } r->proto_num = HTTP_VERSION(1,0); - r->protocol = apr_pstrdup(r->pool, "HTTP/1.0"); + r->protocol = "HTTP/1.0"; return 0; } } while ((len <= 0) && (--num_blank_lines >= 0)); @@ -634,7 +634,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) if (!*r->method || !*uri) { r->status = HTTP_BAD_REQUEST; r->proto_num = HTTP_VERSION(1,0); - r->protocol = apr_pstrdup(r->pool, "HTTP/1.0"); + r->protocol = "HTTP/1.0"; return 0; } @@ -648,7 +648,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) ap_parse_uri(r, uri); if (r->status != HTTP_OK) { r->proto_num = HTTP_VERSION(1,0); - r->protocol = apr_pstrdup(r->pool, "HTTP/1.0"); + r->protocol = "HTTP/1.0"; return 0; } @@ -687,7 +687,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) "Invalid protocol '%s'", r->protocol); if (enforce_strict) { r->proto_num = HTTP_VERSION(1,0); - r->protocol = apr_pstrdup(r->pool, "HTTP/1.0"); + r->protocol = "HTTP/1.0"; r->connection->keepalive = AP_CONN_CLOSE; r->status = HTTP_BAD_REQUEST; return 0;