Re: Quoting Username/Password in authenticate.c

From: Robert Collins <robert.collins@dont-contact.us>
Date: Sun, 23 Sep 2001 16:44:25 +1000

----- Original Message -----
From: "Andrew Reid" <andrew.reid@plug.cx>
To: "Henrik Nordstrom" <hno@marasystems.com>
Cc: "Andrew Reid" <andrew.reid@plug.cx>; <squid-dev@squid-cache.org>
Sent: Friday, September 21, 2001 12:57 PM
Subject: Re: Quoting Username/Password in authenticate.c

> On Tue, Sep 11, 2001 at 07:40:54AM +0200, Henrik Nordstrom wrote:
>
> > You can try the attached patch. It is a direct port of the old one.
> > Completely untested, but not much have changed...
>
> > Index: squid/src/authenticate.c
> > --- squid/src/authenticate.c 2001/01/12 00:51:44 1.13.2.1
> > +++ squid/src/authenticate.c 2001/09/11 05:32:25
>
> [ ... ]
>
> > @@ -96,12 +98,13 @@
> > }
> > r = xcalloc(1, sizeof(authenticateStateData));
> > cbdataAdd(r, cbdataXfree, 0);
> > + xstrncpy(r->user, rfc1738_escape(hashKeyStr(auth_user->hash),
sizeof(r->user));

try changing that line to
+ xstrncpy(r->user, rfc1738_escape(hashKeyStr(auth_user->hash)),
sizeof(r->user));

Rob
Received on Sun Sep 23 2001 - 00:43:28 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:22 MST