From: Andrew Date: Tue, 30 Jun 2020 10:54:06 +0000 (-0400) Subject: s3:winbind:idmap_ad - make failure to get attrnames for schema mode fatal X-Git-Tag: samba-4.11.12~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05a6a60a745293569a327a673d10ceb542a7c746;p=thirdparty%2Fsamba.git s3:winbind:idmap_ad - make failure to get attrnames for schema mode fatal Add check for failure to resolve the OID array for the schema mode into names. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14425 Signed-off-by: Andrew Reviewed-by: Stefan Metzmacher (cherry picked from commit b5b801026edd3a8fd8d0ba1752e891453cf675c9) --- diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index a93c61f54d1..6d879cdf4d7 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -162,6 +162,14 @@ static TLDAPRC get_attrnames_by_oids(struct tldap_context *ld, } TALLOC_FREE(msgs); + for (i=0; i