summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap/ldap_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/ldap/ldap_msg.c')
-rw-r--r--source4/libcli/ldap/ldap_msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/ldap/ldap_msg.c b/source4/libcli/ldap/ldap_msg.c
index 901c42a62a..9b531f3138 100644
--- a/source4/libcli/ldap/ldap_msg.c
+++ b/source4/libcli/ldap/ldap_msg.c
@@ -43,8 +43,9 @@ BOOL add_value_to_attrib(TALLOC_CTX *mem_ctx, struct ldb_val *value,
if (attrib->values == NULL)
return False;
- attrib->values[attrib->num_values] =
- data_blob_talloc(attrib->values, value->data, value->length);
+ attrib->values[attrib->num_values].data = talloc_steal(attrib->values,
+ value->data);
+ attrib->values[attrib->num_values].length = value->length;
attrib->num_values += 1;
return True;
}