[patch] make auth_ntlm compile if NTLM_FAIL_OPEN is defined

From: Pawel Worach <pawel.worach@dont-contact.us>
Date: Fri, 1 Aug 2003 02:47:04 +0200

ntlm/auth_ntlm.cc: In function `stateful_helper_callback_t
   authenticateNTLMHandleReply(void*, void*, char*)':
ntlm/auth_ntlm.cc:601: error: invalid conversion from `void*' to `
   ntlm_helper_state_t*'

        - Pawel

Index: src/auth/ntlm/auth_ntlm.cc
===================================================================
RCS file: /squid/squid3/src/auth/ntlm/auth_ntlm.cc,v
retrieving revision 1.34
diff -u -r1.34 auth_ntlm.cc
--- src/auth/ntlm/auth_ntlm.cc 14 Jul 2003 14:16:21 -0000 1.34
+++ src/auth/ntlm/auth_ntlm.cc 1 Aug 2003 00:35:23 -0000
@@ -598,7 +598,7 @@
         /* we only expect LD when finishing the handshake */
         assert(ntlm_request->auth_state == AUTHENTICATE_STATE_RESPONSE);
         ntlm_user->username = xstrndup(reply, MAX_LOGIN_SZ);
- helperstate =
helperStatefulServerGetData(ntlm_request->authserver);
+ helperstate = static_cast<ntlm_helper_state_t
*>(helperStatefulServerGetData(ntlm_request->authserver));
         ntlm_request->authserver = NULL;
         /* BH code: mark helper as broken */
         /* mark it for starving */
Received on Fri Aug 01 2003 - 04:13:37 MDT

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