HomePhabricator

knownhosts: Make sure we have both knownhosts files ready

Authored by Jakuje on Tue, Oct 30, 1:55 PM.

Description

knownhosts: Make sure we have both knownhosts files ready

If either one is missing at this point, fill it with default vaules in
ssh_options_apply().

Previously, when setting up only knownhosts, global_knownhosts file
was left pointing to NULL and the ssh_known_hosts_read_entries()
was trying to open NULL file which is invalid.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 5159cd96e8b61c9f8f96786f70cf23167980b621)

Details

Committed
asnFri, Nov 2, 11:43 AM
Parents
rLIBSSH8a8498b586bf: client: Reformat comment
Branches
Unknown
Tags
Unknown