Skip to content

Commit e5ab4d5

Browse files
committed
Fixed sending incorrect context id.
1 parent dfb7059 commit e5ab4d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NtApiDotNet/Win32/Rpc/Transport/RpcTransportSecurityContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ internal byte[] ProtectPDU(byte[] header, ref byte[] stub_data, int auth_padding
9595
var stub_data_buffer = new SecurityBufferInOut(SecurityBufferType.Data, stub_data);
9696
buffers.Add(stub_data_buffer);
9797
buffers.Add(new SecurityBufferInOut(SecurityBufferType.Data | SecurityBufferType.ReadOnly,
98-
AuthData.ToArray(TransportSecurity, auth_padding_length, 0, new byte[0])));
98+
AuthData.ToArray(TransportSecurity, auth_padding_length, ContextId, new byte[0])));
9999

100100
byte[] signature;
101101
if (TransportSecurity.AuthenticationLevel == RpcAuthenticationLevel.PacketIntegrity)

0 commit comments

Comments
 (0)