File tree 1 file changed +2
-2
lines changed
src/libraries/System.Net.Security/src/System/Net/Security
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static SecurityStatusPal AcceptSecurityContext(
65
65
inputBuffers . SetNextBuffer ( new InputSecurityBuffer ( inputBuffer , SecurityBufferType . SECBUFFER_TOKEN ) ) ;
66
66
inputBuffers . SetNextBuffer ( new InputSecurityBuffer ( default , SecurityBufferType . SECBUFFER_EMPTY ) ) ;
67
67
68
- if ( sslAuthenticationOptions . ApplicationProtocols != null && sslAuthenticationOptions . ApplicationProtocols . Count != 0 )
68
+ if ( context == null && sslAuthenticationOptions . ApplicationProtocols != null && sslAuthenticationOptions . ApplicationProtocols . Count != 0 )
69
69
{
70
70
byte [ ] alpnBytes = ConvertAlpnProtocolListToByteArray ( sslAuthenticationOptions . ApplicationProtocols ) ;
71
71
inputBuffers . SetNextBuffer ( new InputSecurityBuffer ( new ReadOnlySpan < byte > ( alpnBytes ) , SecurityBufferType . SECBUFFER_APPLICATION_PROTOCOLS ) ) ;
@@ -101,7 +101,7 @@ public static SecurityStatusPal InitializeSecurityContext(
101
101
InputSecurityBuffers inputBuffers = default ;
102
102
inputBuffers . SetNextBuffer ( new InputSecurityBuffer ( inputBuffer , SecurityBufferType . SECBUFFER_TOKEN ) ) ;
103
103
inputBuffers . SetNextBuffer ( new InputSecurityBuffer ( default , SecurityBufferType . SECBUFFER_EMPTY ) ) ;
104
- if ( sslAuthenticationOptions . ApplicationProtocols != null && sslAuthenticationOptions . ApplicationProtocols . Count != 0 )
104
+ if ( context == null && sslAuthenticationOptions . ApplicationProtocols != null && sslAuthenticationOptions . ApplicationProtocols . Count != 0 )
105
105
{
106
106
byte [ ] alpnBytes = ConvertAlpnProtocolListToByteArray ( sslAuthenticationOptions . ApplicationProtocols ) ;
107
107
inputBuffers . SetNextBuffer ( new InputSecurityBuffer ( new ReadOnlySpan < byte > ( alpnBytes ) , SecurityBufferType . SECBUFFER_APPLICATION_PROTOCOLS ) ) ;
You can’t perform that action at this time.
0 commit comments