1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

krb5_wrap: Make sure we don't dereference a NULL pointer.

Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
Andreas Schneider
2013-02-25 14:52:23 +01:00
committed by David Disseldorp
parent f06a0352e5
commit 157943fdfb

View File

@ -1400,7 +1400,9 @@ krb5_error_code smb_krb5_get_credentials(krb5_context context,
krb5_error_code ret;
krb5_creds *creds = NULL;
*out_creds = NULL;
if (out_creds != NULL) {
*out_creds = NULL;
}
if (impersonate_princ) {
#ifdef HAVE_KRB5_GET_CREDS_OPT_SET_IMPERSONATE /* Heimdal */