diff options
author | Günther Deschner <gd@samba.org> | 2009-05-07 13:32:41 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-07 13:32:41 +0200 |
commit | 8e490d2fa1c52be5da331df0b314508f77ec1f6e (patch) | |
tree | 88466488abaf6d931b504edfadd844707b916cfc /source3/libsmb | |
parent | 949cd77ca2529249dc8cd04740c2ca342fb0c283 (diff) | |
download | samba-8e490d2fa1c52be5da331df0b314508f77ec1f6e.tar.gz samba-8e490d2fa1c52be5da331df0b314508f77ec1f6e.tar.xz samba-8e490d2fa1c52be5da331df0b314508f77ec1f6e.zip |
s3-credentials: protect netlogon_creds_server_step() against NULL creds.
Found by SCHANNEL torture tests.
Guenther
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/credentials.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c index 0d7bde0c09..9dc0b9f01b 100644 --- a/source3/libsmb/credentials.c +++ b/source3/libsmb/credentials.c @@ -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. */ |