https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2786 --- imap/backend.c 2006-02-07 21:57:27.000000000 +0100 +++ imap/backend.c.oden 2006-06-11 15:50:32.000000000 +0200 @@ -271,7 +271,7 @@ /* need to (re)establish connection to server or create one */ int sock = -1; int r; - int err = 0; + int err = -1; struct addrinfo hints, *res0 = NULL, *res1 = NULL, *res; struct sockaddr_un sunsock; char buf[2048], *mechlist = NULL;