From d94805ea55aef50403ecf6570039319a4505f835 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Jun 2005 05:58:49 +0000 Subject: r7517: handle zero length equality tests (This used to be commit 18c96f2b3e4d4c769354d61a4cda5c295f50536f) --- source4/lib/ldb/common/ldb_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb') 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; -- cgit