diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c index 3ac86ea06..7cce92310 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: readconf.c,v 1.62 2001/02/11 12:59:25 markus Exp $"); | 15 | RCSID("$OpenBSD: readconf.c,v 1.63 2001/02/24 10:37:55 deraadt Exp $"); |
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "xmalloc.h" | 18 | #include "xmalloc.h" |
@@ -808,6 +808,12 @@ fill_default_options(Options * options) | |||
808 | len, "~/%.100s", _PATH_SSH_CLIENT_IDENTITY); | 808 | len, "~/%.100s", _PATH_SSH_CLIENT_IDENTITY); |
809 | } | 809 | } |
810 | if (options->protocol & SSH_PROTO_2) { | 810 | if (options->protocol & SSH_PROTO_2) { |
811 | len = 2 + strlen(_PATH_SSH_CLIENT_ID_RSA) + 1; | ||
812 | options->identity_files[options->num_identity_files] = | ||
813 | xmalloc(len); | ||
814 | snprintf(options->identity_files[options->num_identity_files++], | ||
815 | len, "~/%.100s", _PATH_SSH_CLIENT_ID_RSA); | ||
816 | |||
811 | len = 2 + strlen(_PATH_SSH_CLIENT_ID_DSA) + 1; | 817 | len = 2 + strlen(_PATH_SSH_CLIENT_ID_DSA) + 1; |
812 | options->identity_files[options->num_identity_files] = | 818 | options->identity_files[options->num_identity_files] = |
813 | xmalloc(len); | 819 | xmalloc(len); |