From: Andrew Bartlett Date: Tue, 10 Apr 2018 04:34:21 +0000 (+1200) Subject: dsdb: Allow search before init() is called in extended_dn_out X-Git-Tag: ldb-1.4.0~632 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6baf7608dfc3517cb3798fc53db849f49c6d157a;p=thirdparty%2Fsamba.git dsdb: Allow search before init() is called in extended_dn_out This matches the earlier check of p && p->normalise. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13379 Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c index ad4603fbbb9..6a869d0c482 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c @@ -498,7 +498,7 @@ static int extended_callback(struct ldb_request *req, struct ldb_reply *ares, continue; } - if (p->normalise) { + if (p && p->normalise) { /* If we are also in 'normalise' mode, then * fix the attribute names to be in the * correct case */