]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: don't leak arg2 on parse_pubkey_algos error path; ok
authordjm@openbsd.org <djm@openbsd.org>
Fri, 31 Mar 2023 04:23:02 +0000 (04:23 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 31 Mar 2023 04:32:37 +0000 (15:32 +1100)
dtucker@

OpenBSD-Commit-ID: 7d0270ad3dd102412ca76add2b3760518abdef75

readconf.c

index 6ded2313df52df7b470bab928f04cde78119dc62..0816ef6b3873d49997d4cb437957ace8e71e98b6 100644 (file)
@@ -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 {