summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-08 16:15:09 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-03-08 10:14:05 +0100
commit5b372d7015553a0ab9523999184124fa9d6555e7 (patch)
treec5b0f594edd97fcb8c00e91e53e4f15823b3b613 /auth
parent1102acbbb685ea2eb95d903fd095f05f20710bf2 (diff)
downloadsamba-5b372d7015553a0ab9523999184124fa9d6555e7.tar.gz
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.c5
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
}