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>

Details

Committed
JakujeFri, Nov 2, 10:08 AM
Parents
rLIBSSH35c417312c0b: client: Reformat comment
Branches
Unknown
Tags
Unknown