1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-30 09:06:11 +00:00

fix memleak when applying certificate options; ok dtucker

This commit is contained in:
djm
2025-09-15 04:38:00 +00:00
parent 9dba5737d8
commit 3032e48d21

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: auth-options.c,v 1.101 2023/07/14 07:44:21 dtucker Exp $ */
/* $OpenBSD: auth-options.c,v 1.102 2025/09/15 04:38:00 djm Exp $ */
/*
* Copyright (c) 2018 Damien Miller <djm@mindrot.org>
*
@@ -152,6 +152,7 @@ cert_option_list(struct sshauthopt *opts, struct sshbuf *oblob,
if (addr_match_cidr_list(NULL, allowed) == -1) {
error("Certificate source-address "
"contents invalid");
free(allowed);
goto out;
}
opts->required_from_host_cert = allowed;