mirror of
https://github.com/samba-team/samba.git
synced 2025-10-23 11:33:16 +03:00
r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized returns a const string - ldb_dn_alloc_linearized allocs astring with the linearized dn
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a580c871d3
commit
3929c086d5
@@ -166,7 +166,7 @@ static struct MprVar mprLdbMessage(struct ldb_context *ldb, struct ldb_message *
|
||||
const char *multivalued[] = { "objectClass", "memberOf", "privilege",
|
||||
"member", NULL };
|
||||
|
||||
var = mprObject(ldb_dn_linearize(msg, msg->dn));
|
||||
var = mprObject(ldb_dn_alloc_linearized(msg, msg->dn));
|
||||
|
||||
for (i=0;i<msg->num_elements;i++) {
|
||||
struct ldb_message_element *el = &msg->elements[i];
|
||||
@@ -213,7 +213,7 @@ static struct MprVar mprLdbMessage(struct ldb_context *ldb, struct ldb_message *
|
||||
|
||||
/* add the dn if it is not already specified */
|
||||
if (mprGetProperty(&var, "dn", 0) == 0) {
|
||||
mprSetVar(&var, "dn", mprString(ldb_dn_linearize(msg, msg->dn)));
|
||||
mprSetVar(&var, "dn", mprString(ldb_dn_alloc_linearized(msg, msg->dn)));
|
||||
}
|
||||
|
||||
return var;
|
||||
|
Reference in New Issue
Block a user