]> granicus.if.org Git - neomutt/commit
Fix potential cert memory leak in check_certificate_by_digest().
authorKevin McCarthy <kevin@8t8.us>
Sun, 12 Feb 2017 20:24:51 +0000 (12:24 -0800)
committerRichard Russon <rich@flatcap.org>
Mon, 20 Feb 2017 16:49:41 +0000 (16:49 +0000)
commit67dd5616b41caa54f7bacb02b270fc80286f8d47
tree3c3573d23a3d39315e77b039ac3c04b4ef445f5b
parent2ea74e4fbf0fc9fefd66152fc210703ca69b6005
Fix potential cert memory leak in check_certificate_by_digest().

Thanks to Matthias Andree's debugging, it appears the cert is not
freed when PEM_read_X509() encounters EOF.  Change the return value
check to not overwrite cert.  It is already updated via the second
parameter.
mutt_ssl.c