1
0
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:
Günther Deschner 2009-05-07 13:32:41 +02:00
parent 949cd77ca2
commit 8e490d2fa1

View File

@ -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. */