cc-1164 cc: WARNING File = utils/ntlm_auth_diagnostics.c, Line = 479 Argument of type "unsigned char *" is incompatible with parameter of type "const char *". lm_response.length = strlen(lm_response.data); ^
if ((convert_string_allocate(NULL, CH_UNIX, CH_DOS, password, strlen(password)+1, (void**)&lm_response.data,True)) == -1) { DEBUG(0, ("push_ascii_allocate failed!\n")); exit(1); } Since the length of lm_response.data is the return value of this function, the strlen() call may be unnecessary.
Also, I just realized the DEBUG message describes the wrong function that could fail.
Created attachment 1376 [details] Two fixes for ntlm_auth_diagnostics.c
Compiler warning is not in 3.0.23rc2 However, the statement DEBUG(0, ("push_ascii_allocate failed!\n")); still describes the wrong call that failed.
Fix DEBUG statement. Thanks.
Warnings do not exist in 3.0.23rc3