From 23b6af10f6ab3852ca28338b8d58342be816f0a2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Jul 2011 13:25:34 +1000 Subject: ldb: added ldb_val_string_cmp() this should help fix some places where we run past the end of a string Pair-Programmed-With: Andrew Bartlett --- lib/ldb/include/ldb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ldb/include/ldb.h') diff --git a/lib/ldb/include/ldb.h b/lib/ldb/include/ldb.h index d745f377b6..1305d8e2e5 100644 --- a/lib/ldb/include/ldb.h +++ b/lib/ldb/include/ldb.h @@ -2251,4 +2251,9 @@ const char *ldb_req_location(struct ldb_request *req); */ bool ldb_dn_minimise(struct ldb_dn *dn); +/* + compare a ldb_val to a string +*/ +int ldb_val_string_cmp(const struct ldb_val *v, const char *str); + #endif -- cgit