mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Ok - we're now sending back policy handles to bigendian AS/U correctly.
Jeremy.
This commit is contained in:
parent
a8df5e04b5
commit
67e09aea47
@ -569,8 +569,14 @@ static ssize_t process_complete_pdu(pipes_struct *p)
|
||||
}
|
||||
|
||||
prs_init( &rpc_in, 0, p->mem_ctx, UNMARSHALL);
|
||||
/* Ensure we're using the corrent endianness. */
|
||||
|
||||
/*
|
||||
* Ensure we're using the corrent endianness for both the
|
||||
* RPC header flags and the raw data we will be reading from.
|
||||
*/
|
||||
|
||||
prs_set_endian_data( &rpc_in, p->endian);
|
||||
prs_set_endian_data( &p->in_data.data, p->endian);
|
||||
|
||||
prs_give_memory( &rpc_in, data_p, (uint32)data_len, False);
|
||||
|
||||
@ -601,6 +607,9 @@ static ssize_t process_complete_pdu(pipes_struct *p)
|
||||
break;
|
||||
}
|
||||
|
||||
/* Reset to little endian. Probably don't need this but it won't hurt. */
|
||||
prs_set_endian_data( &p->in_data.data, RPC_LITTLE_ENDIAN);
|
||||
|
||||
if (!reply) {
|
||||
DEBUG(3,("process_complete_pdu: DCE/RPC fault sent on pipe %s\n", p->pipe_srv_name));
|
||||
set_incoming_fault(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user