aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-05-05 11:11:03 +0000
committerVincent Richard <[email protected]>2006-05-05 11:11:03 +0000
commit64fdd8e8895e64c0470e6b1be6d7c0a8ba561208 (patch)
tree7e5c7a7d4a79e9fed78c724c3f0c53dcae29b546
parentWeek of year calculation. (diff)
downloadvmime-64fdd8e8895e64c0470e6b1be6d7c0a8ba561208.tar.gz
vmime-64fdd8e8895e64c0470e6b1be6d7c0a8ba561208.zip
Fixed typo when parsing ESMTP/AUTH response.
-rw-r--r--src/net/smtp/SMTPTransport.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/smtp/SMTPTransport.cpp b/src/net/smtp/SMTPTransport.cpp
index 1b634151..78702320 100644
--- a/src/net/smtp/SMTPTransport.cpp
+++ b/src/net/smtp/SMTPTransport.cpp
@@ -278,10 +278,10 @@ void SMTPTransport::authenticateSASL()
while (liss >> word)
{
if (word.length() == 4 &&
- (word[0] == 'A' || word[0] == 'a') ||
- (word[0] == 'U' || word[0] == 'u') ||
- (word[0] == 'T' || word[0] == 't') ||
- (word[0] == 'H' || word[0] == 'h'))
+ (word[0] == 'A' || word[0] == 'a') &&
+ (word[1] == 'U' || word[1] == 'u') &&
+ (word[2] == 'T' || word[2] == 't') &&
+ (word[3] == 'H' || word[3] == 'h'))
{
inAuth = true;
}