From 64be07bc70e4d755916304eb5446485801374c12 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 2 Oct 2010 13:45:22 +0200 Subject: s4:dsdb_dn_val_rmd_flags - memmem - scan the whole string for occourences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do this as in "dsdb_dn_is_upgraded_link_val". There is really no reason to truncate before search. Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Sun Oct 3 10:45:39 UTC 2010 on sn-devel-104 --- source4/dsdb/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 7e6090124b..4e6fe034e1 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -3222,7 +3222,7 @@ uint32_t dsdb_dn_val_rmd_flags(const struct ldb_val *val) if (val->length < 13) { return 0; } - p = memmem(val->data, val->length-2, "data, val->length, "