summaryrefslogtreecommitdiffstats
path: root/source/libads/ldap_schema.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libads/ldap_schema.c')
-rw-r--r--source/libads/ldap_schema.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libads/ldap_schema.c b/source/libads/ldap_schema.c
index 170ee65df71..ff41ccc8614 100644
--- a/source/libads/ldap_schema.c
+++ b/source/libads/ldap_schema.c
@@ -48,13 +48,13 @@ ADS_STATUS ads_get_attrnames_by_oids(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx,
for (i=0; i<num_OIDs; i++) {
- if ((expr = talloc_asprintf_append(expr, "(attributeId=%s)",
+ if ((expr = talloc_asprintf_append_buffer(expr, "(attributeId=%s)",
OIDs[i])) == NULL) {
return ADS_ERROR(LDAP_NO_MEMORY);
}
}
- if ((expr = talloc_asprintf_append(expr, ")")) == NULL) {
+ if ((expr = talloc_asprintf_append_buffer(expr, ")")) == NULL) {
return ADS_ERROR(LDAP_NO_MEMORY);
}