summaryrefslogtreecommitdiff
path: root/pith/send.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-20 11:51:51 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-20 11:51:51 -0600
commit954a31d7a4b4b6c4d8f4eea7dccea3cece5213aa (patch)
tree408dd3d095ae6973cc77dbc650107ea433c0ac08 /pith/send.c
parent2c08a863b7242f6658151a2e2592a6293c4dcb65 (diff)
downloadalpine-954a31d7a4b4b6c4d8f4eea7dccea3cece5213aa.tar.xz
* Move freeing for some SSL memory until after all connections are
closed. * A message could fail to verify its signature even if the certificate was saved when the message was open. Based on a report by David Woodhouse to the RedHat bugzilla system.
Diffstat (limited to 'pith/send.c')
-rw-r--r--pith/send.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pith/send.c b/pith/send.c
index 460f6a24..dc5a500f 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -3711,8 +3711,10 @@ posting_characterset(void *data, char *preferred_charset, MsgPart mp)
*/
charsetmap = init_charsetchecker(preferred_charset);
- if(!charsetmap)
+ if(!charsetmap){
+ if (ucs != NULL) fs_give((void **) &ucs);
return(utf8);
+ }
validbitmap = ~0;
while((validbitmap & ~0x1) && (*ucsp)){