From 03139c03fe9b9823e553aefea3bf6877fb3628fb Mon Sep 17 00:00:00 2001 From: Avinesh Singh Date: Mon, 5 Aug 2024 16:56:47 +0530 Subject: [PATCH] fix redundant CRLF response during SMTP negotiate --- .../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 52946d51e0bb6c..a3b236c67ba678 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 {