summaryrefslogtreecommitdiff
path: root/pith/smime.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2022-06-10 19:42:36 -0600
committerEduardo Chappa <chappa@washington.edu>2022-06-10 19:42:36 -0600
commit21813be5a29ac9a2c6e9075383c528b4b52d6c5f (patch)
tree2977a4482ce56e8c9458686f6885d86ffda8fe22 /pith/smime.c
parent1f26808faba44fe9140d19cf93d7b8560513e5ec (diff)
downloadalpine-21813be5a29ac9a2c6e9075383c528b4b52d6c5f.tar.xz
* Cleaning up some memory leaks reported by Valgrind. Memory leaks in the
handling of http headers will be handled through a different update.
Diffstat (limited to 'pith/smime.c')
-rw-r--r--pith/smime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pith/smime.c b/pith/smime.c
index 9b5e9c96..e330d1c9 100644
--- a/pith/smime.c
+++ b/pith/smime.c
@@ -3266,6 +3266,7 @@ decrypt_file(char *fp, int *rv, PERSONAL_CERT *pc)
long unsigned int len;
void *ret;
+ if(rv) *rv = -1; /* assume failure */
if(pc == NULL || (text = read_file(fp, 0)) == NULL || *text == '\0')
return NULL;