r11241: - fix compiler warning
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Oct 2005 10:08:40 +0000 (10:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:06 +0000 (13:45 -0500)
- fix comment

metze

source/kdc/kpasswdd.c

index 4f15cccd34489d81861dfb203fa3c7d6ed5991b7..73584b7554be9c1137d282deb8087392ad4a91a1 100644 (file)
@@ -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);