r6149: Fixes bugs #2498 and 2484.
[samba.git] / source / libads / kerberos.c
index 43ccb18b5a65c65c6f5da910fa03745c306c27d6..18820d9e312317c51a9eb3986797c4ccba680693 100644 (file)
@@ -89,7 +89,7 @@ int kerberos_kinit_password(const char *principal,
        }
        
        if ((code = krb5_get_init_creds_password(ctx, &my_creds, me,
-                                                 (char *) password
+                                                 CONST_DISCARD(char *, password)
                                                 kerb_prompter, 
                                                 NULL, 0, NULL, NULL))) {
                krb5_free_principal(ctx, me);