summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ritter <unrzl1@linux.rrze.uni-erlangen.de>2010-04-22 14:29:52 +0200
committerAndrew Bartlett <abartlet@samba.org>2010-04-27 16:41:51 +1000
commit6be72df7362c27c973a63a960d0b87eefa22db15 (patch)
tree9d0ba10092f4a9c2dbac88c3fe9d10375afb7bfd
parent8c6147715371e88c425ff8530f9bd7f44cd4cafb (diff)
downloadsamba-6be72df7362c27c973a63a960d0b87eefa22db15.tar.gz
samba-6be72df7362c27c973a63a960d0b87eefa22db15.tar.bz2
samba-6be72df7362c27c973a63a960d0b87eefa22db15.zip
Simple fix to prevent crash for non-pac principals
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/kdc/pac-glue.c5
1 files changed, 5 insertions, 0 deletions
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;