summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-21 10:08:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:06 -0500
commit29a3b138a2781f899ee32e278d683532a630b940 (patch)
tree28922f1734118a5ae46a5f565b2880c5fe337a22 /source4/kdc
parent16bbafb7e862016e4c6281c32cc5b25adeae3cfc (diff)
downloadsamba-29a3b138a2781f899ee32e278d683532a630b940.tar.gz
samba-29a3b138a2781f899ee32e278d683532a630b940.tar.bz2
samba-29a3b138a2781f899ee32e278d683532a630b940.zip
r11241: - fix compiler warning
- fix comment metze (This used to be commit 4f999625a164e58b87d915bbb2914038ea96162a)
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kpasswdd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c
index 4f15cccd34..73584b7554 100644
--- a/source4/kdc/kpasswdd.c
+++ b/source4/kdc/kpasswdd.c
@@ -224,7 +224,7 @@ static BOOL kpasswd_process_request(struct kdc_server *kdc,
switch (version) {
case KRB5_KPASSWD_VERS_CHANGEPW:
{
- char *password = talloc_strndup(mem_ctx, input->data, input->length);
+ char *password = talloc_strndup(mem_ctx, (const char *)input->data, input->length);
if (!password) {
return False;
}
@@ -308,7 +308,7 @@ static BOOL kpasswd_process_request(struct kdc_server *kdc,
status = samdb_set_password(samdb, mem_ctx,
set_password_on_dn, NULL,
msg, password, NULL, NULL,
- False, /* this is a user password change */
+ False, /* this is not a user password change */
True, /* run restriction tests */
&reject_reason, &dominfo);