mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 01:05:14 +02:00
upstream: don't leak arg2 on parse_pubkey_algos error path; ok
dtucker@ OpenBSD-Commit-ID: 7d0270ad3dd102412ca76add2b3760518abdef75
This commit is contained in:
parent
8ba2d4764b
commit
1c1124dc90
@ -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>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* 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\" "
|
error("%s line %d: keyword %s \"%s\" "
|
||||||
"argument must appear alone.",
|
"argument must appear alone.",
|
||||||
filename, linenum, keyword, arg);
|
filename, linenum, keyword, arg);
|
||||||
|
free(arg2);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user