summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-15 05:50:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:22 -0500
commit24c76df16637f4fb13e057741591fb398268e857 (patch)
tree28cba470bfc181ca0a6dc0f7858cc21d503d73ac
parent69408532e75bc621439239fb808ca79e2910dcbc (diff)
downloadsamba-24c76df16637f4fb13e057741591fb398268e857.tar.gz
samba-24c76df16637f4fb13e057741591fb398268e857.tar.bz2
samba-24c76df16637f4fb13e057741591fb398268e857.zip
r14430: ret can be NULL at the end of this loop
(This used to be commit b607be9cdad5a9bd672698cb31a2af81d59d0763)
-rw-r--r--source4/lib/ldb/common/ldb_parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index 52e7522b85..939bf31eb9 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -193,7 +193,9 @@ static struct ldb_val **ldb_wildcard_decode(void *mem_ctx, const char *string)
val++;
}
- ret[val] = NULL;
+ if (ret != NULL) {
+ ret[val] = NULL;
+ }
return ret;
}