httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1199567 - /httpd/httpd/trunk/modules/aaa/mod_authn_socache.c
Date Wed, 09 Nov 2011 00:32:49 GMT
Author: niq
Date: Wed Nov  9 00:32:49 2011
New Revision: 1199567

URL: http://svn.apache.org/viewvc?rev=1199567&view=rev
Log:
mod_authn_socache: tidy up r1199565.
And we don't need that separator in the namespacing string -
it's not for human consumption.

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authn_socache.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authn_socache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authn_socache.c?rev=1199567&r1=1199566&r2=1199567&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authn_socache.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authn_socache.c Wed Nov  9 00:32:49 2011
@@ -232,10 +232,9 @@ static const char *construct_key(request
     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")) {



Mime
View raw message