]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: leak of authentication options at exit; ok dtucker@
authordjm@openbsd.org <djm@openbsd.org>
Mon, 15 Sep 2025 04:52:12 +0000 (04:52 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 15 Sep 2025 06:13:24 +0000 (16:13 +1000)
OpenBSD-Commit-ID: ba559799c2ff9b10afc3abefb1797c0843a6ff24

sshd-auth.c

index 27db2e14cca835c10b25ec103582d562bc61e098..9c31515de18f3010068e2fd149a9867686f9684b 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd-auth.c,v 1.8 2025/08/29 03:50:38 djm Exp $ */
+/* $OpenBSD: sshd-auth.c,v 1.9 2025/09/15 04:52:12 djm Exp $ */
 /*
  * SSH2 implementation:
  * Privilege Separation:
@@ -773,6 +773,7 @@ main(int ac, char **av)
         * The unprivileged child now transfers the current keystate and exits.
         */
        mm_send_keystate(ssh, pmonitor);
+       sshauthopt_free(auth_opts);
        ssh_packet_clear_keys(ssh);
        exit(0);
 }