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
f8450fae
Commit
f8450fae
authored
Nov 22, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Handle NULL binding in RpcBindingInqAuthClient{,Ex}.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
786633e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+5
-1
server.c
dlls/rpcrt4/tests/server.c
+9
-0
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
f8450fae
...
...
@@ -1621,11 +1621,15 @@ RpcBindingInqAuthClientExW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *
RPC_WSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
,
ULONG
Flags
)
{
RpcBinding
*
bind
=
ClientBinding
;
RpcBinding
*
bind
;
TRACE
(
"%p %p %p %p %p %p 0x%x
\n
"
,
ClientBinding
,
Privs
,
ServerPrincName
,
AuthnLevel
,
AuthnSvc
,
AuthzSvc
,
Flags
);
if
(
!
ClientBinding
)
ClientBinding
=
I_RpcGetCurrentCallHandle
();
if
(
!
ClientBinding
)
return
RPC_S_INVALID_BINDING
;
bind
=
ClientBinding
;
if
(
!
bind
->
FromConn
)
return
RPC_S_INVALID_BINDING
;
return
rpcrt4_conn_inquire_auth_client
(
bind
->
FromConn
,
Privs
,
...
...
dlls/rpcrt4/tests/server.c
View file @
f8450fae
...
...
@@ -1525,6 +1525,15 @@ void __cdecl s_authinfo_test(unsigned int protseq, int secure)
}
ok
(
level
==
RPC_C_AUTHN_LEVEL_PKT_PRIVACY
,
"level unchanged
\n
"
);
ok
(
authnsvc
==
RPC_C_AUTHN_WINNT
,
"authnsvc unchanged
\n
"
);
RpcStringFreeA
(
&
principal
);
status
=
RpcBindingInqAuthClientA
(
NULL
,
&
privs
,
&
principal
,
&
level
,
&
authnsvc
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"expected RPC_S_OK got %u
\n
"
,
status
);
RpcStringFreeA
(
&
principal
);
status
=
RpcBindingInqAuthClientExA
(
NULL
,
&
privs
,
&
principal
,
&
level
,
&
authnsvc
,
NULL
,
0
);
ok
(
status
==
RPC_S_OK
,
"expected RPC_S_OK got %u
\n
"
,
status
);
RpcStringFreeA
(
&
principal
);
status
=
RpcImpersonateClient
(
NULL
);
ok
(
status
==
RPC_S_OK
,
"expected RPC_S_OK got %u
\n
"
,
status
);
...
...
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