aboutsummaryrefslogtreecommitdiffstats
path: root/camel
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
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')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f1d9e274a2..cd3ea21ea7 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
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.
+
* providers/local/camel-maildir-folder.c (maildir_append_message):
remove the summary info so we are not out-of-sync with the maildir
folder.
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."));