aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/smtp
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/smtp')
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index c081bd9a13..0d1ef1e95e 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -758,7 +758,7 @@ smtp_auth (CamelSmtpTransport *transport, const char *mech, CamelException *ex)
}
/* the server challenge/response should follow a 334 code */
- if (strcmp (respbuf, "334")) {
+ if (strncmp (respbuf, "334", 3)) {
g_free (respbuf);
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
_("AUTH request failed."));