mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
parent
3652a2360f
commit
a6e45f0da5
@ -797,7 +797,7 @@ int ldb_msg_check_string_attribute(const struct ldb_message *msg, const char *na
|
||||
if (el == NULL)
|
||||
return 0;
|
||||
|
||||
val.data = (uint8_t *)discard_const(value);
|
||||
val.data = discard_const_p(uint8_t, value);
|
||||
val.length = strlen(value);
|
||||
|
||||
if (ldb_msg_find_val(el, &val))
|
||||
|
@ -134,7 +134,7 @@ char *ldb_binary_encode(void *mem_ctx, struct ldb_val val)
|
||||
char *ldb_binary_encode_string(void *mem_ctx, const char *string)
|
||||
{
|
||||
struct ldb_val val;
|
||||
val.data = (uint8_t *)discard_const(string);
|
||||
val.data = discard_const_p(uint8_t, string);
|
||||
val.length = strlen(string);
|
||||
return ldb_binary_encode(mem_ctx, val);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user