NTLM compiler compatibility problem ?

From: Guido Serassio <serassio@dont-contact.us>
Date: Thu, 25 Apr 2002 19:43:43 +0200

Hi Henrik,

After a full debugging day I have finally found the cause of NTLM
malfunction on Windows.

All seems to comes from some strange behaviour on bit fields in the
_helper_stateful_server structure, may be a MS VC problem ?

Debugging I have found that when flags.reserved is set to
S_HELPER_DEFERRED, the real value reported by debugger is -2.

I have tried to change the flags structure in the following manner, and now
all works.

     struct _helper_stateful_flags {
         unsigned int alive:1;
         unsigned int busy:1;
         unsigned int closing:1;
         unsigned int shutdown:1;
         unsigned int reserved:2;
// stateful_helper_reserve_t reserved:2;
     } flags;

typedef enum {
} stateful_helper_reserve_t;

What is Your opinion about ?



Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Thu Apr 25 2002 - 11:43:51 MDT

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