From e020dd8d5917c3c957b73211cecc618d9f0207cb Mon Sep 17 00:00:00 2001 From: Seb Boving Date: Thu, 4 Jun 2015 15:39:36 -0700 Subject: Don't allocate a new identity list in the new session's options. The previous list is not freed. Since the new session just got created, an identity list is already allocated and empty. Signed-off-by: Sebastien Boving Reviewed-by: Andreas Schneider --- src/options.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/options.c b/src/options.c index 44b1a888..e715c09d 100644 --- a/src/options.c +++ b/src/options.c @@ -93,12 +93,6 @@ int ssh_options_copy(ssh_session src, ssh_session *dest) { if (src->opts.identity) { struct ssh_iterator *it; - new->opts.identity = ssh_list_new(); - if (new->opts.identity == NULL) { - ssh_free(new); - return -1; - } - it = ssh_list_get_iterator(src->opts.identity); while (it) { char *id; -- cgit