dsdb: Allow search before init() is called in extended_dn_out
authorAndrew Bartlett <abartlet@samba.org>
Tue, 10 Apr 2018 04:34:21 +0000 (16:34 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2018 03:15:17 +0000 (05:15 +0200)
This matches the earlier check of p && p->normalise.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13379

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/extended_dn_out.c

index ad4603fbbb953d9762a2de20bf6803b5592ada1a..6a869d0c4820668520b3e5c05898d7e9d55d1774 100644 (file)
@@ -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 */