1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Simple fix to prevent crash for non-pac principals

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Marcel Ritter 2010-04-22 14:29:52 +02:00 committed by Andrew Bartlett
parent 8c61477153
commit 6be72df736

View File

@ -79,6 +79,11 @@ krb5_error_code samba_make_krb5_pac(krb5_context context,
krb5_data pac_data; krb5_data pac_data;
krb5_error_code ret; krb5_error_code ret;
/* The user account may be set not to want the PAC */
if (!pac_blob) {
return 0;
}
ret = krb5_data_copy(&pac_data, pac_blob->data, pac_blob->length); ret = krb5_data_copy(&pac_data, pac_blob->data, pac_blob->length);
if (ret != 0) { if (ret != 0) {
return ret; return ret;