Samba 3.0.12rc1 Three files have code that set's "got_kerberos_mechanism" variable but never uses the variable because the code is inside an #ifdef. In the attached patch I've added additional #ifdef's to avoid a compiler warning. And in smbd/sesssetup.c changed "got_kerberos" to "got_kerberos_mechanism" to be consistent with the other two uses (unless it was intentional).
Created attachment 1040 [details] #ifdef HAVE_KRB5 around "got_kerberos_mechanism"
Compiling smbd/sesssetup.c cc-1552 cc: WARNING File = smbd/sesssetup.c, Line = 420 The variable "got_kerberos" is set but never used. BOOL got_kerberos = False; ^ Compiling libsmb/cliconnect.c cc-1552 cc: WARNING File = libsmb/cliconnect.c, Line = 705 The variable "got_kerberos_mechanism" is set but never used. BOOL got_kerberos_mechanism = False; ^ Compiling libads/sasl.c cc-1552 cc: WARNING File = libads/sasl.c, Line = 176 The variable "got_kerberos_mechanism" is set but never used. BOOL got_kerberos_mechanism = False; ^
applied. Thanks.
whoops. closing now.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.