mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r19911: talloc_apsrintf is not really required here
its faster this way (another 2-4%s)
This commit is contained in:
parent
b1197dbeeb
commit
8bbbfa3467
@ -142,8 +142,12 @@ struct TDB_DATA ltdb_key(struct ldb_module *module, struct ldb_dn *dn)
|
||||
goto failed;
|
||||
}
|
||||
|
||||
key_str = talloc_asprintf(ldb, "DN=%s", dn_folded);
|
||||
key_str = talloc_strdup(ldb, "DN=");
|
||||
if (!key_str) {
|
||||
goto failed;
|
||||
}
|
||||
|
||||
key_str = talloc_append_string(ldb, key_str, dn_folded);
|
||||
if (!key_str) {
|
||||
goto failed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user