]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: leak of principals file lines; ok dtucker@
authordjm@openbsd.org <djm@openbsd.org>
Mon, 15 Sep 2025 04:52:41 +0000 (04:52 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 15 Sep 2025 06:13:25 +0000 (16:13 +1000)
OpenBSD-Commit-ID: 918bf1b70e5a969059300f3c23d45911690d9015

sshsig.c

index 3da005d621f94dfad76ba7c4de2313fcc15f1ff8..d84004ca961f233356595e594e704c530d34dd0e 100644 (file)
--- a/sshsig.c
+++ b/sshsig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshsig.c,v 1.38 2025/02/18 08:02:48 djm Exp $ */
+/* $OpenBSD: sshsig.c,v 1.39 2025/09/15 04:52:41 djm Exp $ */
 /*
  * Copyright (c) 2019 Google LLC
  *
@@ -1123,6 +1123,7 @@ sshsig_match_principals(const char *path, const char *principal,
                linesize = 0;
        }
        fclose(f);
+       free(line);
 
        if (ret == 0) {
                if (nprincipals == 0)