diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-08 16:15:09 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-03-08 10:14:05 +0100 |
commit | 5b372d7015553a0ab9523999184124fa9d6555e7 (patch) | |
tree | c5b0f594edd97fcb8c00e91e53e4f15823b3b613 /auth | |
parent | 1102acbbb685ea2eb95d903fd095f05f20710bf2 (diff) | |
download | samba-5b372d7015553a0ab9523999184124fa9d6555e7.tar.gz samba-5b372d7015553a0ab9523999184124fa9d6555e7.tar.bz2 samba-5b372d7015553a0ab9523999184124fa9d6555e7.zip |
auth/kerberos: Ensure we do not print invalid memory in failure case
This codeblock may not have any set->elements, so we should not print them. Copy&paste in the original code.
Andrew Bartlett
Diffstat (limited to 'auth')
-rw-r--r-- | auth/kerberos/gssapi_pac.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/auth/kerberos/gssapi_pac.c b/auth/kerberos/gssapi_pac.c index d0de11efdf..8a4d8c3be1 100644 --- a/auth/kerberos/gssapi_pac.c +++ b/auth/kerberos/gssapi_pac.c @@ -209,10 +209,7 @@ NTSTATUS gssapi_get_session_key(TALLOC_CTX *mem_ctx, krb5_free_keyblock(NULL /* should be krb5_context */, subkey); return NT_STATUS_OK; #else - DEBUG(0, ("gss_inquire_sec_context_by_oid returned unknown " - "OID for data in results:\n")); - dump_data(1, (uint8_t *)set->elements[1].value, - set->elements[1].length); + DEBUG(0, ("gss_inquire_sec_context_by_oid didn't return any session key (and no alternative method available)\n")); return NT_STATUS_NO_USER_SESSION_KEY; #endif } |