mutt (1.5.19-4) unstable; urgency=low
* debian/rules:
- + disable tokyocabinet as backend so it won't be accidentally compiled
- (Closes: 530670)
+ + disable tokyocabinet as backend so it won't be used (Closes: 530670)
* debian/control:
+ added pkg-config to Build-Depends
* patches/debian-specific/529838-gnutls-autoconf.patch:
+ mutt does not segfault when the last mailbox is removed (Closes: 439387)
* patches/upstream/375530-index-weirdness.patch
+ fix index weirdness if mailbox is emptied (Closes: 375530)
+ * patches/upstream/493719-segfault-imap-close.patch
+ + IMAP: only close socket when not already disconnected (Closes: 493719)
-- Antonio Radici <antonio@dyne.org> Tue, 26 May 2009 23:42:51 +0100
upstream/508988-inode-sort.patch
upstream/530661-mandatory-doubledash.patch
upstream/375530-index-weirdness.patch
+upstream/493719-segfault-imap-close.patch
misc/hyphen-as-minus.patch
misc/smime_keys-manpage.patch
--- /dev/null
+IMAP: only close socket when not already disconnected.
+closes http://bugs.mutt.org/3161 and
+http://bugs.debian.org/493719
+
+--- a/imap/imap.c
++++ b/imap/imap.c
+@@ -488,8 +488,11 @@
+
+ void imap_close_connection(IMAP_DATA* idata)
+ {
+- mutt_socket_close (idata->conn);
+- idata->state = IMAP_DISCONNECTED;
++ if (idata->state != IMAP_DISCONNECTED)
++ {
++ mutt_socket_close (idata->conn);
++ idata->state = IMAP_DISCONNECTED;
++ }
+ idata->seqno = idata->nextcmd = idata->lastcmd = idata->status = 0;
+ memset (idata->cmds, 0, sizeof (IMAP_COMMAND) * idata->cmdslots);
+ }