]> git.llucax.com Git - software/mutt-debian.git/commitdiff
IMAP: only close socket when not already disconnected (Closes: 493719)
authorAntonio Radici <antonio@dyne.org>
Wed, 27 May 2009 22:23:59 +0000 (23:23 +0100)
committerAntonio Radici <antonio@dyne.org>
Wed, 27 May 2009 22:23:59 +0000 (23:23 +0100)
debian/changelog
debian/patches/series
debian/patches/upstream/493719-segfault-imap-close.patch [new file with mode: 0644]

index e27ab0f8bd78cadfb1572183ec1a67c5b7726ef5..ae2a68f895dceaaa855cdcfb4262b1200af6ee9e 100644 (file)
@@ -1,8 +1,7 @@
 mutt (1.5.19-4) unstable; urgency=low
 
   * debian/rules:
 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:
   * debian/control:
     + added pkg-config to Build-Depends
   * patches/debian-specific/529838-gnutls-autoconf.patch:
@@ -13,6 +12,8 @@ mutt (1.5.19-4) unstable; urgency=low
     + 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)
     + 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
 
 
  -- Antonio Radici <antonio@dyne.org>  Tue, 26 May 2009 23:42:51 +0100
 
index 766a143064fb24fbad4f08cb4cb86a83dbf171f0..1542a930d17b1274c49f21d11f2880a4f7e4840b 100644 (file)
@@ -31,6 +31,7 @@ upstream/500016-temp-cache-fix.patch
 upstream/508988-inode-sort.patch
 upstream/530661-mandatory-doubledash.patch
 upstream/375530-index-weirdness.patch
 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
 
 misc/hyphen-as-minus.patch
 misc/smime_keys-manpage.patch
diff --git a/debian/patches/upstream/493719-segfault-imap-close.patch b/debian/patches/upstream/493719-segfault-imap-close.patch
new file mode 100644 (file)
index 0000000..ed6671f
--- /dev/null
@@ -0,0 +1,20 @@
+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);
+ }