From 6be72df7362c27c973a63a960d0b87eefa22db15 Mon Sep 17 00:00:00 2001 From: Marcel Ritter Date: Thu, 22 Apr 2010 14:29:52 +0200 Subject: Simple fix to prevent crash for non-pac principals Signed-off-by: Andrew Bartlett --- source4/kdc/pac-glue.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/kdc') diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index 97f7416537..2a932fa832 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -79,6 +79,11 @@ krb5_error_code samba_make_krb5_pac(krb5_context context, krb5_data pac_data; 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); if (ret != 0) { return ret; -- cgit