Please test and commit this fix.
=> initialize err to revent segfault
Reported by
Andreas Bihlmaier <andreas.bihlmaier at gmx.de>
Regards,
--
Antoine
diff -uNr --exclude=CVS /usr/ports/mail/cyrus-imapd/Makefile
cyrus-imapd/Makefile
--- /usr/ports/mail/cyrus-imapd/Makefile Sun Sep 17 16:45:16 2006
+++ cyrus-imapd/Makefile Sun Sep 17 16:45:01 2006
@@ -5,7 +5,7 @@
V= 2.2.13
DISTNAME= cyrus-imapd-${V}
-PKGNAME= ${DISTNAME}p0
+PKGNAME= ${DISTNAME}p1
FULLPKGNAME-perl=cyrus-imapd-perl-${V}
CATEGORIES= mail
HOMEPAGE= http://cyrusimap.web.cmu.edu
diff -uNr --exclude=CVS
/usr/ports/mail/cyrus-imapd/patches/patch-imap_backend_c
cyrus-imapd/patches/patch-imap_backend_c
--- /usr/ports/mail/cyrus-imapd/patches/patch-imap_backend_c Thu Jan 1
01:00:00 1970
+++ cyrus-imapd/patches/patch-imap_backend_c Sun Sep 17 16:45:01 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- imap/backend.c.orig Sun Sep 17 16:40:12 2006
++++ imap/backend.c Sun Sep 17 16:40:45 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;