aboutsummaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-12-05 12:09:07 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-12-07 14:08:27 +0100
commit21e252236018ce10958b0623837a48f354d5b155 (patch)
tree05ff6fcf631dbc147bd232f1eda5d7311acb1daa /src/session.c
parent8f887e82c75a92942dea903d9239981f20136efb (diff)
downloadlibssh-21e252236018ce10958b0623837a48f354d5b155.tar.gz
libssh-21e252236018ce10958b0623837a48f354d5b155.tar.xz
libssh-21e252236018ce10958b0623837a48f354d5b155.zip
config: Get rid of the dynamic seen array
* This makes the array constant in the session structure, avoiding allocations and frees while parsing the file * It also drops passing the seen array to all the functions, because it is already part of the passed session * The test cases are adjusted to match these changes Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 48103cba..157fe1e7 100644
--- a/src/session.c
+++ b/src/session.c
@@ -283,7 +283,6 @@ void ssh_free(ssh_session session) {
SAFE_FREE(session->opts.gss_server_identity);
SAFE_FREE(session->opts.gss_client_identity);
SAFE_FREE(session->opts.pubkey_accepted_types);
- SAFE_FREE(session->opts.options_seen);
for (i = 0; i < 10; i++) {
if (session->opts.wanted_methods[i]) {