1
0
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:
Simo Sorce 2006-11-27 05:32:35 +00:00 committed by Gerald (Jerry) Carter
parent b1197dbeeb
commit 8bbbfa3467

View File

@ -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;
}