Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2aa52b07
Commit
2aa52b07
authored
May 18, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: If the authorisation failed during a send then we should return ERROR_ACCESS_DENIED.
parent
4fae04b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
rpc_message.c
dlls/rpcrt4/rpc_message.c
+8
-3
No files found.
dlls/rpcrt4/rpc_message.c
View file @
2aa52b07
...
...
@@ -393,7 +393,10 @@ static RPC_STATUS RPCRT_AuthorizeConnection(RpcConnection* conn,
ISC_REQ_DELEGATE
,
0
,
SECURITY_NETWORK_DREP
,
&
inp_desc
,
0
,
&
conn
->
ctx
,
&
out_desc
,
&
conn
->
attr
,
&
conn
->
exp
);
if
(
r
)
return
r
;
{
WARN
(
"InitializeSecurityContext failed with error 0x%08lx
\n
"
,
r
);
return
ERROR_ACCESS_DENIED
;
}
resp_hdr
=
RPCRT4_BuildAuthHeader
(
NDR_LOCAL_DATA_REPRESENTATION
);
if
(
!
resp_hdr
)
...
...
@@ -571,8 +574,10 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
unsigned
int
offset
;
offset
=
common_hdr
.
frag_len
-
hdr_length
-
common_hdr
.
auth_len
;
RPCRT_AuthorizeConnection
(
Connection
,
(
LPBYTE
)
pMsg
->
Buffer
+
offset
,
common_hdr
.
auth_len
);
status
=
RPCRT_AuthorizeConnection
(
Connection
,
(
LPBYTE
)
pMsg
->
Buffer
+
offset
,
common_hdr
.
auth_len
);
if
(
status
)
goto
fail
;
}
/* success */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment