summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-14 04:04:13 +0000
committerTim Potter <tpot@samba.org>2003-01-14 04:04:13 +0000
commitc64e2308bae31d48171685b3b67b8cace1b003b5 (patch)
tree4c2b0c61c011c5bf8b1cb965cc65d02d4a483e69
parente4ce26332b8f876e25ff9baf06d4767a473e2676 (diff)
downloadsamba-c64e2308bae31d48171685b3b67b8cace1b003b5.tar.gz
samba-c64e2308bae31d48171685b3b67b8cace1b003b5.tar.xz
samba-c64e2308bae31d48171685b3b67b8cace1b003b5.zip
Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.
-rw-r--r--source/nsswitch/winbindd_pam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c
index 844c44567bc..b8a8c38d681 100644
--- a/source/nsswitch/winbindd_pam.c
+++ b/source/nsswitch/winbindd_pam.c
@@ -273,6 +273,8 @@ enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state)
#if 0
/* we don't currently do this stuff right */
+ /* Doing an assert in a daemon is going to be a pretty bad
+ idea. - tpot */
if (state->request.data.auth_crap.flags & WINBIND_PAM_NTKEY) {
SMB_ASSERT(sizeof(state->response.data.auth.nt_session_key) == sizeof(info3.user_sess_key));
memcpy(state->response.data.auth.nt_session_key, info3.user_sess_key, sizeof(state->response.data.auth.nt_session_key) /* 16 */);