diff options
author | Nick Kew <niq@apache.org> | 2011-11-09 00:32:49 +0000 |
---|---|---|
committer | Nick Kew <niq@apache.org> | 2011-11-09 00:32:49 +0000 |
commit | 6d78e38be1f335ee2740ae8a6d648066da3b1665 (patch) | |
tree | 58118f5d5877c60d908132417b8a1848bd6dc5a4 | |
parent | 565f842bd27a59fb36f4c09b217acbe846f87255 (diff) | |
download | httpd-6d78e38be1f335ee2740ae8a6d648066da3b1665.tar.gz |
mod_authn_socache: tidy up r1199565.
And we don't need that separator in the namespacing string -
it's not for human consumption.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199567 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/aaa/mod_authn_socache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/aaa/mod_authn_socache.c b/modules/aaa/mod_authn_socache.c index 1f5f4b7e83..a11cf31617 100644 --- a/modules/aaa/mod_authn_socache.c +++ b/modules/aaa/mod_authn_socache.c @@ -232,10 +232,9 @@ static const char *construct_key(request_rec *r, const char *context, if (!strcmp(context, "directory")) { /* FIXME: are we at risk of this blowing up? */ char *slash = strrchr(r->uri, '/'); - context = apr_palloc(r->pool, slash - r->uri - + strlen(r->server->server_hostname) + 2); + context = apr_palloc(r->pool, slash - r->uri + + strlen(r->server->server_hostname) + 1); strcpy(context, r->server->server_hostname); - strcat(context, ":"); strncat(context, r->uri, slash - r->uri); } else if (!strcmp(context, "server")) { |