mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +03:00
bug-fixing against:
AS/U:
it returns dce/rpc "first" and "last" bits _clear_ in a bind/ack
response, when they should be set in a (small) packet. they also,
in the bind/ack do not set a secondary address string at all, so
we can't check against that...
Win95:
client-side dce/rpc code is a bit odd. it does a "WaitNamedPipeState"
and has slightly different pipe-naming (\PIPE\LANMAN is joined by
\PIPE\SRVSVC, \PIPE\WINREG etc whereas nt just has \PIPE\LANMAN
and \PIPE\).
Win95-USRMGR.EXE:
added LsaOpenPolicy (renamed existing to LsaOpenPolicy2).
added SamrConnect (renamed existing to SamrConnect2).
(This used to be commit a7fccd807b)
This commit is contained in:
@@ -123,6 +123,7 @@ pipes_struct *open_rpc_pipe_p(char *pipe_name,
|
||||
|
||||
p->open = True;
|
||||
p->device_state = 0;
|
||||
p->priority = 0;
|
||||
p->conn = conn;
|
||||
p->vuid = vuid;
|
||||
|
||||
@@ -300,6 +301,29 @@ int read_pipe(pipes_struct *p, char *data, uint32 pos, int n)
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
wait device state on a pipe. exactly what this is for is unknown...
|
||||
****************************************************************************/
|
||||
BOOL wait_rpc_pipe_hnd_state(pipes_struct *p, uint16 priority)
|
||||
{
|
||||
if (p == NULL) return False;
|
||||
|
||||
if (p->open)
|
||||
{
|
||||
DEBUG(3,("%s Setting pipe wait state priority=%x on pipe (name=%s)\n",
|
||||
timestring(), priority, p->name));
|
||||
|
||||
p->priority = priority;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
DEBUG(3,("%s Error setting pipe wait state priority=%x (name=%s)\n",
|
||||
timestring(), priority, p->name));
|
||||
return False;
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
set device state on a pipe. exactly what this is for is unknown...
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user