[Commits] [SCM] claws branch, master, updated. 3.15.0-105-g0506897

ticho at claws-mail.org ticho at claws-mail.org
Wed Jul 12 20:44:17 CEST 2017


The branch, master has been updated
       via  050689774a127bcb8646bbf9c4caf3216dcee803 (commit)
      from  6fedb78e7f7928e72d6e7c7919ac2be752c789d7 (commit)

Summary of changes:
 src/procmime.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 050689774a127bcb8646bbf9c4caf3216dcee803
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Jul 12 20:43:07 2017 +0200

    Correction of previous commit 6fedb78e7.
    
    We do not want to prematurely close tmpfp handle if
    it points to outfp.

diff --git a/src/procmime.c b/src/procmime.c
index f62487c..2559dce 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -460,7 +460,8 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
 					err = TRUE;
 			}
 		}
-		procmime_fclose(tmpfp);
+		if (tmpfp != outfp)
+			procmime_fclose(tmpfp);
 	} else if (encoding == ENC_X_UUENCODE) {
 		gchar outbuf[BUFFSIZE];
 		gint len;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list