Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62C179089 for ; Wed, 9 Nov 2011 00:33:13 +0000 (UTC) Received: (qmail 74934 invoked by uid 500); 9 Nov 2011 00:33:13 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 74866 invoked by uid 500); 9 Nov 2011 00:33:13 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 74859 invoked by uid 99); 9 Nov 2011 00:33:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 00:33:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 00:33:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EBE0E238897F; Wed, 9 Nov 2011 00:32:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1199567 - /httpd/httpd/trunk/modules/aaa/mod_authn_socache.c Date: Wed, 09 Nov 2011 00:32:49 -0000 To: cvs@httpd.apache.org From: niq@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111109003249.EBE0E238897F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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")) {