Fixed type mismatch in the formatted output

This commit is contained in:
Polshakov Dmitry 2016-04-09 10:24:35 +03:00
parent 3b4a411532
commit 9bdb2ef9eb
4 changed files with 9 additions and 9 deletions

6
ntlm.c
View file

@ -1307,7 +1307,7 @@ void dumpAuthResponse(FILE * fp, tSmbNtlmAuthResponse * response);
void dumpAuthRequest(FILE * fp, tSmbNtlmAuthRequest * request) {
fprintf(fp, "NTLM Request:\n");
fprintf(fp, " Ident = %s\n", request->ident);
fprintf(fp, " mType = %d\n", IVAL(&request->msgType, 0));
fprintf(fp, " mType = %u\n", IVAL(&request->msgType, 0));
fprintf(fp, " Flags = %08x\n", IVAL(&request->flags, 0));
fprintf(fp, " Host = %s\n", GetString(request, host));
fprintf(fp, " Domain = %s\n", GetString(request, domain));
@ -1316,7 +1316,7 @@ void dumpAuthRequest(FILE * fp, tSmbNtlmAuthRequest * request) {
void dumpAuthChallenge(FILE * fp, tSmbNtlmAuthChallenge * challenge) {
fprintf(fp, "NTLM Challenge:\n");
fprintf(fp, " Ident = %s\n", challenge->ident);
fprintf(fp, " mType = %d\n", IVAL(&challenge->msgType, 0));
fprintf(fp, " mType = %u\n", IVAL(&challenge->msgType, 0));
fprintf(fp, " Domain = %s\n", GetUnicodeString(challenge, uDomain));
fprintf(fp, " Flags = %08x\n", IVAL(&challenge->flags, 0));
fprintf(fp, " Challenge = ");
@ -1327,7 +1327,7 @@ void dumpAuthChallenge(FILE * fp, tSmbNtlmAuthChallenge * challenge) {
void dumpAuthResponse(FILE * fp, tSmbNtlmAuthResponse * response) {
fprintf(fp, "NTLM Response:\n");
fprintf(fp, " Ident = %s\n", response->ident);
fprintf(fp, " mType = %d\n", IVAL(&response->msgType, 0));
fprintf(fp, " mType = %u\n", IVAL(&response->msgType, 0));
fprintf(fp, " LmResp = ");
DumpBuffer(fp, response, lmResponse);
fprintf(fp, " NTResp = ");