[openssh-commits] [openssh] 03/03: upstream: don't leak arg2 on parse_pubkey_algos error path; ok

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Mar 31 15:33:00 AEDT 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 1c1124dc901fca1ea2cb762044b8f1a5793a2bed
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Fri Mar 31 04:23:02 2023 +0000

    upstream: don't leak arg2 on parse_pubkey_algos error path; ok
    
    dtucker@
    
    OpenBSD-Commit-ID: 7d0270ad3dd102412ca76add2b3760518abdef75
---
 readconf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/readconf.c b/readconf.c
index 6ded2313..0816ef6b 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.375 2023/03/10 02:24:56 dtucker Exp $ */
+/* $OpenBSD: readconf.c,v 1.376 2023/03/31 04:23:02 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo at cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -1578,6 +1578,7 @@ parse_pubkey_algos:
 					error("%s line %d: keyword %s \"%s\" "
 					    "argument must appear alone.",
 					    filename, linenum, keyword, arg);
+					free(arg2);
 					goto out;
 				}
 			} else {

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list