mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-credentials: protect netlogon_creds_server_step() against NULL creds.
Found by SCHANNEL torture tests. Guenther
This commit is contained in:
parent
949cd77ca2
commit
8e490d2fa1
@ -257,6 +257,10 @@ bool netlogon_creds_server_step(struct dcinfo *dc,
|
||||
bool ret;
|
||||
struct dcinfo tmp_dc = *dc;
|
||||
|
||||
if (!received_cred || !cred_out) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Do all operations on a temporary copy of the dc,
|
||||
which we throw away if the checks fail. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user