diff options
author | djm@openbsd.org <djm@openbsd.org> | 2023-03-31 04:23:02 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-03-31 15:32:37 +1100 |
commit | 1c1124dc901fca1ea2cb762044b8f1a5793a2bed (patch) | |
tree | 86915886085ac6ab22e3a8d9987d70a270e0b4d6 | |
parent | 8ba2d4764bb6a4701cd447d8b52604622ffe65f4 (diff) | |
download | openssh-git-1c1124dc901fca1ea2cb762044b8f1a5793a2bed.tar.gz |
upstream: don't leak arg2 on parse_pubkey_algos error path; ok
dtucker@
OpenBSD-Commit-ID: 7d0270ad3dd102412ca76add2b3760518abdef75
-rw-r--r-- | readconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@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 { |