1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/mail/cyrus-imapd22/files/patch-imap::backend.c
Hajimu UMEMOTO 02796e393b deliver segfaulted when using without -l.
Submitted by:	André Böhm <andre__at__abtime.de>
Obtained from:	https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2786
2006-04-02 04:45:28 +00:00

14 lines
493 B
C

Index: imap/backend.c
diff -u -p imap/backend.c.orig imap/backend.c
--- imap/backend.c.orig Wed Feb 8 05:57:27 2006
+++ imap/backend.c Sun Apr 2 13:39:57 2006
@@ -271,7 +271,7 @@ struct backend *backend_connect(struct b
/* 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;