This is consistent with the other uses in this file (in
authn_policy_ntlm_client() and authn_policy_server()).
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
authn_attrs.policy->allowed_to_authenticate_from);
if (allowed_from != NULL && allowed_from->data != NULL) {
- uint8_t *allowed_from_data = talloc_reference(client_policy, allowed_from->data);
- if (allowed_from_data == NULL) {
- ret = ENOMEM;
- goto out;
- }
-
client_policy->allowed_to_authenticate_from = data_blob_const(
- allowed_from_data,
+ talloc_steal(client_policy, allowed_from->data),
allowed_from->length);
}
}