diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-07-13 13:25:34 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-07-13 12:51:05 +0200 |
commit | 23b6af10f6ab3852ca28338b8d58342be816f0a2 (patch) | |
tree | 2dda4f619b1eb6d6c27342d0bc9d768acdf0f550 /lib/ldb/include | |
parent | 2087eb1602d647a7b14523820834231f50dea79d (diff) | |
download | samba-23b6af10f6ab3852ca28338b8d58342be816f0a2.tar.gz samba-23b6af10f6ab3852ca28338b8d58342be816f0a2.tar.bz2 samba-23b6af10f6ab3852ca28338b8d58342be816f0a2.zip |
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 <abartlet@samba.org>
Diffstat (limited to 'lib/ldb/include')
-rw-r--r-- | lib/ldb/include/ldb.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |