From bbf7e8ed85cdc193313bb495c4e374aaa83349da Mon Sep 17 00:00:00 2001 From: Avinesh Singh Date: Mon, 12 Aug 2024 21:57:25 +0530 Subject: [PATCH] fix redundant CRLF response during SMTP negotiate (#105939) --- .../src/System/Net/Mail/SmtpNegotiateAuthenticationModule.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpNegotiateAuthenticationModule.cs b/src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpNegotiateAuthenticationModule.cs index 52946d51e0bb6..a3b236c67ba67 100644 --- a/src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpNegotiateAuthenticationModule.cs +++ b/src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpNegotiateAuthenticationModule.cs @@ -63,10 +63,6 @@ internal SmtpNegotiateAuthenticationModule() { return null; } - if (clientContext.IsAuthenticated && resp == null) - { - resp = "\r\n"; - } } else {