From 8afae2a5f8104b7a898cec40c78687137c8afa18 Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Mon, 23 Jan 2017 18:58:17 +0100 Subject: [PATCH 1/1] Fix resource leak in rsakey_pubblob The input file was not closed after successfully loading an SSH1 key. --- sshpubk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sshpubk.c b/sshpubk.c index 0323335e..a4e4a087 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -309,6 +309,7 @@ int rsakey_pubblob(const Filename *filename, void **blob, int *bloblen, *commentptr = commentp ? dupstr(commentp) : NULL; *blob = rsa_public_blob(&key, bloblen); freersakey(&key); + fclose(fp); return 1; not_public_either: -- 2.45.2