diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-30 00:43:26 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-08-30 00:43:26 +0000 |
commit | 814ea5b90d445b2d59f17f85a53f33ceb39a50ea (patch) | |
tree | 05aeb2ad6c740a3c7426889e02170ca029fbda09 /source/lib/ldb/common/ldb_attributes.c | |
parent | 409cc1555e44c119124b5fd66893b0f7029cd37b (diff) | |
download | samba-814ea5b90d445b2d59f17f85a53f33ceb39a50ea.tar.gz samba-814ea5b90d445b2d59f17f85a53f33ceb39a50ea.tar.xz samba-814ea5b90d445b2d59f17f85a53f33ceb39a50ea.zip |
r9771: - Prevent ldb crash when a invalid DN is added
- Don't silently drop records with empty attributes
tridge/simo: Could you please verify this patch is correct?
Diffstat (limited to 'source/lib/ldb/common/ldb_attributes.c')
-rw-r--r-- | source/lib/ldb/common/ldb_attributes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/ldb/common/ldb_attributes.c b/source/lib/ldb/common/ldb_attributes.c index a915666d781..3973fc515c5 100644 --- a/source/lib/ldb/common/ldb_attributes.c +++ b/source/lib/ldb/common/ldb_attributes.c @@ -66,7 +66,7 @@ static int ldb_default_copy(struct ldb_context *ldb, { *out = ldb_val_dup(mem_ctx, in); - if (out->length == 0) { + if (out->data == NULL && in->data != NULL) { return -1; } |