summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-13 05:58:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:03 -0500
commitd94805ea55aef50403ecf6570039319a4505f835 (patch)
treef1e0a850a1beea5e191072515540fe6a57079795 /source4/lib/ldb
parente1fa7352ca0c27516f61e85ddf38477a70f12331 (diff)
downloadsamba-d94805ea55aef50403ecf6570039319a4505f835.tar.gz
samba-d94805ea55aef50403ecf6570039319a4505f835.tar.bz2
samba-d94805ea55aef50403ecf6570039319a4505f835.zip
r7517: handle zero length equality tests
(This used to be commit 18c96f2b3e4d4c769354d61a4cda5c295f50536f)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index 40e83f01bd..8058cceed4 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -134,7 +134,7 @@ struct ldb_val ldb_binary_decode(TALLOC_CTX *ctx, const char *str)
{
int i, j;
struct ldb_val ret;
- int slen = strlen(str);
+ int slen = str?strlen(str):0;
ret.data = talloc_size(ctx, slen+1);
ret.length = 0;