diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-08-17 20:15:28 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-08-17 21:21:51 +1000 |
commit | 56f04188df598767901ab918e2be1f23a922c531 (patch) | |
tree | 31a7f683efe373f4c7ba4e9a79cc89e69d4c268e | |
parent | bb2ba90663609c4051bf9cbedb4246802216126a (diff) | |
download | samba-56f04188df598767901ab918e2be1f23a922c531.tar.gz samba-56f04188df598767901ab918e2be1f23a922c531.tar.bz2 samba-56f04188df598767901ab918e2be1f23a922c531.zip |
s4-ldb: ensure element flags are zero in ldb search return
the distinguishedName element was getting an uninitialised flags value
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_search.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c index 08ccc7933d..9ebec90233 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_search.c +++ b/source4/lib/ldb/ldb_tdb/ldb_search.c @@ -78,6 +78,7 @@ static int msg_add_element(struct ldb_message *ret, } elnew->num_values = el->num_values; + elnew->flags = el->flags; ret->num_elements++; @@ -97,6 +98,7 @@ static int msg_add_distinguished_name(struct ldb_message *msg) el.name = "distinguishedName"; el.num_values = 1; el.values = &val; + el.flags = 0; val.data = (uint8_t *)ldb_dn_alloc_linearized(msg, msg->dn); val.length = strlen((char *)val.data); |