git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59ee131
)
s3-credentials: protect netlogon_creds_server_step() against NULL creds.
author
Guenther Deschner
<gd@samba.org>
Thu, 7 May 2009 19:53:00 +0000
(12:53 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 19 May 2009 08:21:17 +0000
(10:21 +0200)
Found by SCHANNEL torture tests.
Guenther
source/libsmb/credentials.c
patch
|
blob
|
history
diff --git
a/source/libsmb/credentials.c
b/source/libsmb/credentials.c
index 9d33e6d93d7298070da5092a409f71e6a60bcdac..4bfa2318c44820790ba633d7c83e8ceeb470b400 100644
(file)
--- a/
source/libsmb/credentials.c
+++ b/
source/libsmb/credentials.c
@@
-255,6
+255,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. */