diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-17 16:46:56 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-17 16:46:56 +0000 |
commit | 7993e17c9a1edddae6407d3f12790c461def705a (patch) | |
tree | a8ef2b923475bc0f7fb9b7ccba0c9780278b409b /source/libsmb/credentials.c | |
parent | 71c6678cd7ffe30a5da27766cf99147e1921feae (diff) | |
download | samba-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/credentials.c')
-rw-r--r-- | source/libsmb/credentials.c | 11 |
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; + } } |