]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: ignore empty supplementalCredentialsBlob structures
authorStefan Metzmacher <metze@samba.org>
Fri, 3 Jun 2016 14:34:08 +0000 (16:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Jul 2016 19:27:17 +0000 (21:27 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source4/kdc/db-glue.c

index 43211426d7a6e3522ba0ada683270a9cb128bb12..013efbffa08207836fb07204c17869a93b657025 100644 (file)
@@ -364,9 +364,11 @@ static krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
                }
 
                if (scb.sub.signature != SUPPLEMENTAL_CREDENTIALS_SIGNATURE) {
-                       NDR_PRINT_DEBUG(supplementalCredentialsBlob, &scb);
-                       ret = EINVAL;
-                       goto out;
+                       if (scb.sub.num_packages != 0) {
+                               NDR_PRINT_DEBUG(supplementalCredentialsBlob, &scb);
+                               ret = EINVAL;
+                               goto out;
+                       }
                }
 
                for (i=0; i < scb.sub.num_packages; i++) {