diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-02 13:45:22 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@sn-devel-104.sn.samba.org> | 2010-10-03 10:45:39 +0000 |
commit | 64be07bc70e4d755916304eb5446485801374c12 (patch) | |
tree | 4ab49d8b25b5a5471234ae4afabd987f690f6256 | |
parent | bb81760e82bee68e0c4d711338170eae3b19a41a (diff) | |
download | samba-64be07bc70e4d755916304eb5446485801374c12.tar.gz samba-64be07bc70e4d755916304eb5446485801374c12.tar.bz2 samba-64be07bc70e4d755916304eb5446485801374c12.zip |
s4:dsdb_dn_val_rmd_flags - memmem - scan the whole string for occourences
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 <mdw@samba.org>
Autobuild-Date: Sun Oct 3 10:45:39 UTC 2010 on sn-devel-104
-rw-r--r-- | source4/dsdb/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<RMD_FLAGS=", 11); + p = memmem(val->data, val->length, "<RMD_FLAGS=", 11); if (!p) { return 0; } |