From bc117a4331d41e716f446f0a778188605be9f779 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 25 May 2001 22:15:01 +0000 Subject: Oops. Use a strNcmp to make sure the response begins with a 334 code, not 2001-05-25 Jeffrey Stedfast * 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 --- camel/providers/smtp/camel-smtp-transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/providers') 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.")); -- cgit v1.2.3