From 8ce8107a5bcd821585138fd6e7c690547b783bbf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Aug 2011 11:28:12 +1000 Subject: s4-dsdb: use dn_format shortcut to find DN format this saves some string comparisons --- source4/dsdb/samdb/ldb_modules/extended_dn_store.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules/extended_dn_store.c') diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c index c4235201d9..57dc88330d 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c @@ -325,7 +325,7 @@ static int extended_dn_add(struct ldb_module *module, struct ldb_request *req) } /* We only setup an extended DN GUID on DN elements */ - if (dsdb_dn_oid_to_format(schema_attr->syntax->ldap_oid) == DSDB_INVALID_DN) { + if (schema_attr->dn_format == DSDB_INVALID_DN) { continue; } @@ -400,7 +400,7 @@ static int extended_dn_modify(struct ldb_module *module, struct ldb_request *req } /* We only setup an extended DN GUID on these particular DN objects */ - if (dsdb_dn_oid_to_format(schema_attr->syntax->ldap_oid) == DSDB_INVALID_DN) { + if (schema_attr->dn_format == DSDB_INVALID_DN) { continue; } -- cgit