Bugfix on external ACL winbind group helper

From: Serassio Guido <gserassio@dont-contact.us>
Date: Fri, 15 Nov 2002 22:41:12 +0100

Hi Henrik,

There is a little bug on debug info of external ACL winbind group helper on
both HEAD and s2_5 branches.
This is the fix:

Index: external_acl/win32_group/win32_check_group.c
===================================================================
RCS file:
/cvsroot/squid/squid/helpers/external_acl/win32_group/Attic/win32_chec
k_group.c,v
retrieving revision 1.1.8.8
diff -u -p -r1.1.8.8 win32_check_group.c
--- external_acl/win32_group/win32_check_group.c 22 Oct 2002
19:28:17 -00
00 1.1.8.8
+++ external_acl/win32_group/win32_check_group.c 15 Nov 2002
21:37:53 -00
00
@@ -499,7 +499,7 @@ main (int argc, char *argv[])
         if ((p = strchr(buf, '\r')) != NULL)
             *p = '\0'; /* strip \r */

- debug("Got '%s' from Squid (length: %d).\n",buf,sizeof(buf));
+ debug("Got '%s' from Squid (length: %d).\n",buf,strlen(buf));

         if (buf[0] == '\0') {
             fprintf(stderr, "Invalid Request\n");

Regards

Guido

-
==================================================================
Serassio Guido
A.S.P. S.p.A. - Gruppo Altran
Corso Matteotti, 51 10121 - Torino - ITALY
Tel. : +39.011.5717511 Fax. : +39.011.535124
Email: gserassio@asp.it
WWW: http://www.asp.it, http://www.altran.net
Received on Thu Nov 21 2002 - 10:43:07 MST

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