summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/common/ldb_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/ldb/common/ldb_msg.c')
-rw-r--r--source3/lib/ldb/common/ldb_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/common/ldb_msg.c b/source3/lib/ldb/common/ldb_msg.c
index a4ba045669..f6fbb04afb 100644
--- a/source3/lib/ldb/common/ldb_msg.c
+++ b/source3/lib/ldb/common/ldb_msg.c
@@ -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 = discard_const(value);
+ val.data = (uint8_t *)discard_const(value);
val.length = strlen(value);
if (ldb_msg_find_val(el, &val))