Correctly normalise records against OpenLDAP.
[jelmer/samba4-debian.git] / source / dsdb / samdb / ldb_modules / normalise.c
index a0eff43534d63b1a8a301f5e350f882c4c459b88..8de9e33002bace5f76d8173373f09f12ed3ddc3b 100644 (file)
@@ -117,7 +117,7 @@ static int normalise_search_callback(struct ldb_context *ldb, void *context, str
                                talloc_free(mem_ctx);
                                return LDB_ERR_OPERATIONS_ERROR;
                        }
-                       ret = fix_dn(ares->message->dn);
+                       ret = fix_dn(dn);
                        if (ret != LDB_SUCCESS) {
                                talloc_free(mem_ctx);
                                return ret;