From: Stefan Metzmacher Date: Fri, 3 Jun 2016 14:34:08 +0000 (+0200) Subject: s3:libnet_dssync_keytab: ignore empty supplementalCredentialsBlob structures X-Git-Tag: tdb-1.3.10~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c1ce0e7e530feff55fd41a0be397b6dde4b2b27;p=thirdparty%2Fsamba.git s3:libnet_dssync_keytab: ignore empty supplementalCredentialsBlob structures BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- diff --git a/source3/libnet/libnet_dssync_keytab.c b/source3/libnet/libnet_dssync_keytab.c index 66e75620d1b..8999a3535fb 100644 --- a/source3/libnet/libnet_dssync_keytab.c +++ b/source3/libnet/libnet_dssync_keytab.c @@ -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);