summaryrefslogtreecommitdiff
path: root/source3/libsmb/credentials.c
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
commit9e4626593f59ba4f5a678fc6d8d6e239cdff9c39 (patch)
tree9ebe99e504f44523bd7ce7480880a3ed69bfdc49 /source3/libsmb/credentials.c
parentf3c37f925ee06bbc76a89035b28dae0cf8c38088 (diff)
downloadsamba-9e4626593f59ba4f5a678fc6d8d6e239cdff9c39.tar.gz
samba-9e4626593f59ba4f5a678fc6d8d6e239cdff9c39.tar.bz2
samba-9e4626593f59ba4f5a678fc6d8d6e239cdff9c39.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. (This used to be commit 7993e17c9a1edddae6407d3f12790c461def705a)
Diffstat (limited to 'source3/libsmb/credentials.c')
-rw-r--r--source3/libsmb/credentials.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c
index d56598e98a..8881704a7a 100644
--- a/source3/libsmb/credentials.c
+++ b/source3/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;
+ }
}