mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
s4-ldb: ensure element flags are zero in ldb search return
the distinguishedName element was getting an uninitialised flags value
This commit is contained in:
parent
bb2ba90663
commit
56f04188df
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user