diff options
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r-- | lib/krb5_wrap/krb5_samba.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index ffb3f8d00d..0876ab6284 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -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 */ |