summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/chgpasswd.c2
-rw-r--r--source3/smbd/ipc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 45497e4cf8..91062268f9 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -613,7 +613,7 @@ BOOL check_oem_password(char *user,
uchar unenc_old_pw[16];
uchar null_pw[16];
uchar null_ntpw[16];
- uchar no_pw[2];
+ char no_pw[2];
BOOL nt_pass_set = (ntdata != NULL && nthash != NULL);
become_root(False);
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 249c286ec7..4e4eeb40ca 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -1732,7 +1732,7 @@ static BOOL api_SamOEMChangePassword(connection_struct *conn,uint16 vuid, char *
*/
(void)Get_Pwnam( user, True);
- if (pass_oem_change(user, (uchar*) data, &data[516], NULL, NULL))
+ if (pass_oem_change(user, (uchar*) data, (uchar*)(&data[516]), NULL, NULL))
{
SSVAL(*rparam,0,NERR_Success);
}