diff options
author | Gerald Carter <jerry@samba.org> | 2006-03-15 14:58:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:30 -0500 |
commit | 0f0ad2992eedeb9e75ddd2c122b5a5b291ba4efe (patch) | |
tree | 38daed5eae95680fcacc9b8b6c9b7a540aee22c1 /source3/rpc_server | |
parent | 24961b173b53075100cf433bbc1c90485f376434 (diff) | |
download | samba-0f0ad2992eedeb9e75ddd2c122b5a5b291ba4efe.tar.gz samba-0f0ad2992eedeb9e75ddd2c122b5a5b291ba4efe.tar.bz2 samba-0f0ad2992eedeb9e75ddd2c122b5a5b291ba4efe.zip |
r14448: * protect against NULL cli_state* pointers in cli_rpc_pipe_open()
* Fix inverted logic check for machine accounts in get_md4pw()
(This used to be commit a36529535dcb5a262e7627b80fb62a31240dc8ad)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_netlog_nt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c index f3200cbdd7..cafef5ab7f 100644 --- a/source3/rpc_server/srv_netlog_nt.c +++ b/source3/rpc_server/srv_netlog_nt.c @@ -251,9 +251,10 @@ static NTSTATUS get_md4pw(char *md4pw, char *mach_acct, uint16 sec_chan_type) return NT_STATUS_ACCOUNT_DISABLED; } - if (!(acct_ctrl & ACB_SVRTRUST) || - !(acct_ctrl & ACB_WSTRUST) || - !(acct_ctrl & ACB_DOMTRUST)) { + if (!(acct_ctrl & ACB_SVRTRUST) && + !(acct_ctrl & ACB_WSTRUST) && + !(acct_ctrl & ACB_DOMTRUST)) + { DEBUG(0,("get_md4pw: Workstation %s: account is not a trust account\n", mach_acct)); TALLOC_FREE(sampass); return NT_STATUS_NO_TRUST_SAM_ACCOUNT; |