aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/smtp
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-26 06:15:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-26 06:15:01 +0800
commitbc117a4331d41e716f446f0a778188605be9f779 (patch)
treec97b3fe970df9e73a7c99373cc2b166ad21d422a /camel/providers/smtp
parenta99162af68e5773c4c4a6f98de6723627e990b1e (diff)
downloadgsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.tar
gsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.tar.gz
gsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.tar.bz2
gsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.tar.lz
gsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.tar.xz
gsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.tar.zst
gsoc2013-evolution-bc117a4331d41e716f446f0a778188605be9f779.zip
Oops. Use a strNcmp to make sure the response begins with a 334 code, not
2001-05-25 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_auth): Oops. Use a strNcmp to make sure the response begins with a 334 code, not a strcmp. Duh. svn path=/trunk/; revision=10004
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."));