summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/asn1.c b/lib/util/asn1.c
index ef346542a6..a2665ed539 100644
--- a/lib/util/asn1.c
+++ b/lib/util/asn1.c
@@ -355,7 +355,7 @@ bool asn1_check_BOOLEAN(struct asn1_data *data, bool v)
bool asn1_load(struct asn1_data *data, DATA_BLOB blob)
{
ZERO_STRUCTP(data);
- data->data = talloc_memdup(data, blob.data, blob.length);
+ data->data = (uint8_t *)talloc_memdup(data, blob.data, blob.length);
if (!data->data) {
data->has_error = true;
return false;