s3:libnet_dssync_keytab: 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>
source3/libnet/libnet_dssync_keytab.c

index 66e7562..8999a35 100644 (file)
@@ -153,8 +153,8 @@ static  NTSTATUS parse_supplemental_credentials(TALLOC_CTX *mem_ctx,
                status = ndr_map_error2ntstatus(ndr_err);
                goto done;
        }
-       if (scb.sub.signature !=
-           SUPPLEMENTAL_CREDENTIALS_SIGNATURE)
+       if ((scb.sub.signature != SUPPLEMENTAL_CREDENTIALS_SIGNATURE)
+           && (scb.sub.num_packages != 0))
        {
                if (DEBUGLEVEL >= 10) {
                        NDR_PRINT_DEBUG(supplementalCredentialsBlob, &scb);