Index: SMB/ntlm_auth.c =================================================================== RCS file: /cvsroot/squid/squid/helpers/ntlm_auth/SMB/ntlm_auth.c,v retrieving revision 1.1.2.1 diff -u -p -r1.1.2.1 ntlm_auth.c --- SMB/ntlm_auth.c 28 Jun 2002 14:46:21 -0000 1.1.2.1 +++ SMB/ntlm_auth.c 22 Jul 2002 08:47:19 -0000 @@ -133,7 +133,14 @@ void usage() { fprintf(stderr, - "%s usage:\n%s [-b] [-f] [-d] domain\\controller [domain\\controller ...]\n-b, if specified, enables load-balancing among controllers\n-f, if specified, enables failover among controllers (DEPRECATED and always active)\n-l, if specified, changes behavior on domain controller failyures to\tlast-ditch.-d enables debugging statements if DEBUG was defined at build-time.\n\nYou MUST specify at least one Domain Controller.\nYou can use either \\ or / as separator between the domain name \n\tand the controller name\n", + "%s usage:\n%s [-b] [-f] [-d] [-l] domain\\controller [domain\\controller ...]\n" + "-b enables load-balancing among controllers\n" + "-f enables failover among controllers (DEPRECATED and always active)\n" + "-l changes behavior on domain controller failyures to last-ditch.\n" + "-d enables debugging statements if DEBUG was defined at build-time.\n\n" + "You MUST specify at least one Domain Controller.\n" + "You can use either \\ or / as separator between the domain name \n" + "and the controller name\n", my_program_name, my_program_name); } @@ -301,7 +308,7 @@ manage_request() SEND("NA Broken authentication packet"); return; } - switch (fast_header->type) { + switch WSWAP(fast_header->type) { case NTLM_NEGOTIATE: SEND("NA Invalid negotiation request received"); return; Index: winbind/wb_ntlm_auth.c =================================================================== RCS file: /cvsroot/squid/squid/helpers/ntlm_auth/winbind/wb_ntlm_auth.c,v retrieving revision 1.1.2.4 diff -u -p -r1.1.2.4 wb_ntlm_auth.c --- winbind/wb_ntlm_auth.c 20 Jul 2002 12:36:39 -0000 1.1.2.4 +++ winbind/wb_ntlm_auth.c 22 Jul 2002 08:47:19 -0000 @@ -314,7 +314,7 @@ try_again: return; } /* Understand what we got */ - switch (fast_header->type) { + switch WSWAP(fast_header->type) { case NTLM_NEGOTIATE: authfail("-", "-", "Received neg-request while expecting auth packet"); return;