mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
ipc.c: Changing back arbitrary alignment change until I know *why*
luke changed it.
proto.h: The usual.
uid.c: Fix crash bug when attaching with smbclient -mCORE. A vuid
pointer was being used when it was null.
Jeremy.
(This used to be commit ff94f97cf2
)
This commit is contained in:
parent
bd529d7a83
commit
36e5b646d9
@ -144,7 +144,7 @@ static void send_trans_reply(char *outbuf,char *data,char *param,uint16 *setup,
|
||||
this_lparam = MIN(lparam,max_send - (500+lsetup*SIZEOFWORD)); /* hack */
|
||||
this_ldata = MIN(ldata,max_send - (500+lsetup*SIZEOFWORD+this_lparam));
|
||||
|
||||
align = (this_lparam%4)+1;
|
||||
align = (this_lparam%4);
|
||||
|
||||
set_message(outbuf,10+lsetup,align+this_ldata+this_lparam,True);
|
||||
if (this_lparam)
|
||||
|
@ -232,7 +232,7 @@ BOOL become_user(connection_struct *conn, int cnum, uint16 vuid)
|
||||
current_user.groups = conn->groups;
|
||||
current_user.igroups = conn->igroups;
|
||||
current_user.ngroups = conn->ngroups;
|
||||
current_user.attrs = vuser->attrs;
|
||||
current_user.attrs = conn->attrs;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user