summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-17 16:46:56 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-17 16:46:56 +0000
commit7993e17c9a1edddae6407d3f12790c461def705a (patch)
treea8ef2b923475bc0f7fb9b7ccba0c9780278b409b /source/libsmb
parent71c6678cd7ffe30a5da27766cf99147e1921feae (diff)
downloadsamba-7993e17c9a1edddae6407d3f12790c461def705a.tar.gz
samba-7993e17c9a1edddae6407d3f12790c461def705a.tar.xz
samba-7993e17c9a1edddae6407d3f12790c461def705a.zip
pipenetlog.c lsaparse.c smb.h :
SAM logon sorting. too many buffer pointers. added in the missing switch value (value of 3). dealing with the buffer pointers to the user info structure in a slightly different way.
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/credentials.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/libsmb/credentials.c b/source/libsmb/credentials.c
index d56598e98a3..8881704a7a8 100644
--- a/source/libsmb/credentials.c
+++ b/source/libsmb/credentials.c
@@ -130,6 +130,15 @@ int cred_assert(DOM_CHAL *cred, uint32 session_key[2], DOM_CHAL *stored_cred,
DEBUG(5,(" challenge : %lx %lx\n", cred->data[0], cred->data[1]));
DEBUG(5,(" calculated: %lx %lx\n", cred2.data[0], cred2.data[1]));
- return memcmp(cred->data, cred2.data, 8) == 0;
+ if (memcmp(cred->data, cred2.data, 8) == 0)
+ {
+ DEBUG(5, ("credentials check ok\n"));
+ return True;
+ }
+ else
+ {
+ DEBUG(5, ("credentials check wrong\n"));
+ return False;
+ }
}