This commit is contained in:
16
src/nwconn.c
16
src/nwconn.c
@@ -781,8 +781,12 @@ static int handle_ncp_serv(void)
|
||||
int trustee_rights = (int)input->trustee_right_mask;
|
||||
int copylen = input->pathlen;
|
||||
uint8 pathbuf[256];
|
||||
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
|
||||
int result;
|
||||
|
||||
ncp23_debug_dump("NCP22/0D AddTrustee raw",
|
||||
(uint8 *)&input->dir_handle, raw_len);
|
||||
|
||||
if (copylen > 255) copylen = 255;
|
||||
memcpy(pathbuf, input->path, copylen);
|
||||
pathbuf[copylen] = '\0';
|
||||
@@ -814,8 +818,12 @@ static int handle_ncp_serv(void)
|
||||
uint32 trustee_id = GET_BE32(input->trustee_id);
|
||||
int copylen = input->pathlen;
|
||||
uint8 pathbuf[256];
|
||||
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
|
||||
int result;
|
||||
|
||||
ncp23_debug_dump("NCP22/0E DelTrustee raw",
|
||||
(uint8 *)&input->dir_handle, raw_len);
|
||||
|
||||
if (copylen > 255) copylen = 255;
|
||||
memcpy(pathbuf, input->path, copylen);
|
||||
pathbuf[copylen] = '\0';
|
||||
@@ -1177,8 +1185,12 @@ static int handle_ncp_serv(void)
|
||||
int trustee_rights = GET_16(input->trustee_rights);
|
||||
int copylen = input->pathlen;
|
||||
uint8 pathbuf[256];
|
||||
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
|
||||
int result;
|
||||
|
||||
ncp23_debug_dump("NCP22/27 SetTrustee raw",
|
||||
(uint8 *)&input->dir_handle, raw_len);
|
||||
|
||||
if (copylen > 255) copylen = 255;
|
||||
memcpy(pathbuf, input->path, copylen);
|
||||
pathbuf[copylen] = '\0';
|
||||
@@ -1287,8 +1299,12 @@ static int handle_ncp_serv(void)
|
||||
uint32 trustee_id = GET_BE32(input->trustee_id);
|
||||
int copylen = input->pathlen;
|
||||
uint8 pathbuf[256];
|
||||
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
|
||||
int result;
|
||||
|
||||
ncp23_debug_dump("NCP22/2B DelTrustee raw",
|
||||
(uint8 *)&input->dir_handle, raw_len);
|
||||
|
||||
if (copylen > 255) copylen = 255;
|
||||
memcpy(pathbuf, input->path, copylen);
|
||||
pathbuf[copylen] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user