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

s3:libnet_dssync_keytab: ignore empty supplementalCredentialsBlob structures

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>
This commit is contained in:
Stefan Metzmacher 2016-06-03 16:34:08 +02:00
parent 1be64cb660
commit 5c1ce0e7e5

View 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);