git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18f0dc
)
auth/creds/guess: avoid segfault with NULL lp (CID 241187)
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Tue, 7 May 2019 00:51:09 +0000
(12:51 +1200)
committer
Douglas Bagnall
<dbagnall@samba.org>
Thu, 9 May 2019 22:39:27 +0000
(22:39 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
auth/credentials/credentials.c
patch
|
blob
|
history
diff --git
a/auth/credentials/credentials.c
b/auth/credentials/credentials.c
index 7ef58d0752c4470670a77ab2461e300153b91c34..befce2c21195baccd124e33bec9bc14c76f4068e 100644
(file)
--- a/
auth/credentials/credentials.c
+++ b/
auth/credentials/credentials.c
@@
-965,7
+965,8
@@
_PUBLIC_ void cli_credentials_guess(struct cli_credentials *cred,
cli_credentials_parse_password_file(cred, p, CRED_GUESS_FILE);
}
- if (cli_credentials_get_kerberos_state(cred) != CRED_DONT_USE_KERBEROS) {
+ if (lp_ctx != NULL &&
+ cli_credentials_get_kerberos_state(cred) != CRED_DONT_USE_KERBEROS) {
cli_credentials_set_ccache(cred, lp_ctx, NULL, CRED_GUESS_FILE,
&error_string);
}