mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
lib: Use talloc_asprintf_addbuf() in rdn_name_add()
Add implicit NULL checks Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ffba59b5c0
commit
cbcf7f0d21
@ -180,8 +180,8 @@ static int rdn_name_add(struct ldb_module *module, struct ldb_request *req)
|
||||
ldb_dn_get_linearized(msg->dn), rdn_name,
|
||||
(int)rdn_val.length, (const char *)rdn_val.data);
|
||||
for (i = 0; i < attribute->num_values; i++) {
|
||||
rdn_errstring = talloc_asprintf_append(
|
||||
rdn_errstring, " (%.*s)",
|
||||
talloc_asprintf_addbuf(
|
||||
&rdn_errstring, " (%.*s)",
|
||||
(int)attribute->values[i].length,
|
||||
(const char *)attribute->values[i].data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user