diff options
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos.c | 2 | ||||
-rw-r--r-- | source3/libads/krb5_setpw.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index c25f9e4bdeb..004079529f3 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -88,7 +88,7 @@ int kerberos_kinit_password(const char *principal, return code; } - if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, password, + if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, CONST_DISCARD(char *,password), kerb_prompter, NULL, 0, NULL, NULL))) { krb5_free_principal(ctx, me); diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c index c261d15c219..5488c5908f8 100644 --- a/source3/libads/krb5_setpw.c +++ b/source3/libads/krb5_setpw.c @@ -341,7 +341,8 @@ static ADS_STATUS do_krb5_kpasswd_request(krb5_context context, { krb5_auth_context auth_context = NULL; krb5_data ap_req, chpw_req, chpw_rep; - int ret, sock, addr_len; + int ret, sock; + socklen_t addr_len; struct sockaddr remote_addr, local_addr; krb5_address local_kaddr, remote_kaddr; |