1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

signed / unsigned issues

(This used to be commit bd2fc6bb85)
This commit is contained in:
Luke Leighton 1998-10-21 16:28:44 +00:00
parent 9307940876
commit 4773506383
4 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ static BOOL rpc_read(struct cli_state *cli,
DEBUG(5,("rpc_read: offset end: 0x%x. data left to read:0x%x\n",
rdata->data->offset.end, data_to_read));
return data_to_read >= 0;
return rdata->data.data != NULL;
}
/****************************************************************************

View File

@ -2734,7 +2734,7 @@ void make_samr_q_chgpasswd_user(SAMR_Q_CHGPASSWD_USER *q_u,
make_enc_passwd(&(q_u->lm_newpass), lm_newpass);
make_enc_hash (&(q_u->lm_oldhash), lm_oldhash);
};
}
/*******************************************************************
reads or writes a structure.

View File

@ -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);

View File

@ -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);
}