mirror of
https://github.com/openssh/openssh-portable.git
synced 2026-01-12 00:04:08 +08:00
upstream: when merging auth options into the active set, don't
leak the old struct sshauthopt; ok dtucker@ OpenBSD-Commit-ID: c6bfd7bc2932e37f811b3c53272c3b919d33e75b
This commit is contained in:
committed by
Damien Miller
parent
efed5da4ce
commit
03872018c1
3
auth.c
3
auth.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: auth.c,v 1.162 2024/09/15 01:18:26 djm Exp $ */
|
||||
/* $OpenBSD: auth.c,v 1.163 2025/09/15 04:39:15 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||
*
|
||||
@@ -756,6 +756,7 @@ auth_activate_options(struct ssh *ssh, struct sshauthopt *opts)
|
||||
error("Inconsistent authentication options: %s", emsg);
|
||||
return -1;
|
||||
}
|
||||
sshauthopt_free(old);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user