aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-28 03:10:06 +0800
committerDan Winship <danw@src.gnome.org>2000-12-28 03:10:06 +0800
commit5f5ddfccb6dc542d5f7025f99f4f624c2796f52d (patch)
treeb381b49bf92259c4a66a31f4a9a84157c4164288 /camel/providers/pop3
parent3fa9fa84fcf6f41bf59175b9c5eb310f5f2004af (diff)
downloadgsoc2013-evolution-5f5ddfccb6dc542d5f7025f99f4f624c2796f52d.tar.gz
gsoc2013-evolution-5f5ddfccb6dc542d5f7025f99f4f624c2796f52d.tar.zst
gsoc2013-evolution-5f5ddfccb6dc542d5f7025f99f4f624c2796f52d.zip
Fix the APOP check to not crash on servers that don't return any
* providers/pop3/camel-pop3-store.c (connect_to_server): Fix the APOP check to not crash on servers that don't return any information on the +OK greeting line. svn path=/trunk/; revision=7184
Diffstat (limited to 'camel/providers/pop3')
-rw-r--r--camel/providers/pop3/camel-pop3-store.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index 2f23bf0bb2..6fc56fc125 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -230,14 +230,16 @@ connect_to_server (CamelService *service, /*gboolean real, */CamelException *ex)
if (status != CAMEL_POP3_OK)
return FALSE;
- apoptime = strchr (buf, '<');
- apopend = apoptime ? strchr (apoptime, '>') : NULL;
- if (apopend) {
- store->apop_timestamp = g_strndup (apoptime,
- apopend - apoptime + 1);
- memmove (apoptime, apopend + 1, strlen (apopend + 1));
+ if (buf) {
+ apoptime = strchr (buf, '<');
+ apopend = apoptime ? strchr (apoptime, '>') : NULL;
+ if (apopend) {
+ store->apop_timestamp =
+ g_strndup (apoptime, apopend - apoptime + 1);
+ memmove (apoptime, apopend + 1, strlen (apopend + 1));
+ }
+ store->implementation = buf;
}
- store->implementation = buf;
/* Check extensions */
store->login_delay = -1;
orts-gnome/commit/irc/ezbounce?h=mate-1.16&id=5cefce8fbf5f40e42a604e2562f6e4968d11bc54'>Update to 0.99.3 which fixes the compile error found by bentocpiazza2000-01-022-3/+3 * Change Id->FreeBSD.obrien1999-08-251-1/+1 * Remove the second master sitecpiazza1999-08-081-3/+2 * Update to version 0.99.2cpiazza1999-08-022-4/+4 * New ports/{java,irc,x11-servers} categories, Step #4 - Adjust new Makefiles.billf1999-06-281-2/+2 * Commit #3/4 to enforce caps, no period.hoek1999-06-271-1/+1 * Change my email address to FreeBSD.org.cpiazza1999-06-192-7/+5 * Upgrade to 0.85.2mharo1999-05-252-8/+8 * WWW: This is definately the daemon's work. In Chuck we trust.mharo1999-05-031-1/+1 * Update to version 0.85 and honor CXXFLAGS.steve1999-05-036-4/+48