summaryrefslogtreecommitdiff
path: root/source3/utils/net_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_lookup.c')
-rw-r--r--source3/utils/net_lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index 00cf2f6213..b768089fff 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -215,7 +215,7 @@ static int net_lookup_kdc(int argc, const char **argv)
realm.length = strlen(argv[0]);
} else if (lp_realm() && *lp_realm()) {
realm.data = lp_realm();
- realm.length = strlen(realm.data);
+ realm.length = strlen((const char *)realm.data);
} else {
rc = krb5_get_host_realm(ctx, NULL, &realms);
if (rc) {
@@ -224,7 +224,7 @@ static int net_lookup_kdc(int argc, const char **argv)
return -1;
}
realm.data = (char *) *realms;
- realm.length = strlen(realm.data);
+ realm.length = strlen((const char *)realm.data);
}
rc = krb5_locate_kdc(ctx, &realm, (struct sockaddr **)(void *)&addrs, &num_kdcs, 0);