summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/servconf.c b/servconf.c
index e772cd46b..445d2da79 100644
--- a/servconf.c
+++ b/servconf.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: servconf.c,v 1.96 2002/01/04 17:59:17 stevesk Exp $"); 13RCSID("$OpenBSD: servconf.c,v 1.97 2002/01/04 18:14:16 stevesk Exp $");
14 14
15#if defined(KRB4) || defined(KRB5) 15#if defined(KRB4) || defined(KRB5)
16#include <krb.h> 16#include <krb.h>
@@ -124,9 +124,14 @@ fill_default_server_options(ServerOptions *options)
124 if (options->num_host_key_files == 0) { 124 if (options->num_host_key_files == 0) {
125 /* fill default hostkeys for protocols */ 125 /* fill default hostkeys for protocols */
126 if (options->protocol & SSH_PROTO_1) 126 if (options->protocol & SSH_PROTO_1)
127 options->host_key_files[options->num_host_key_files++] = _PATH_HOST_KEY_FILE; 127 options->host_key_files[options->num_host_key_files++] =
128 if (options->protocol & SSH_PROTO_2) 128 _PATH_HOST_KEY_FILE;
129 options->host_key_files[options->num_host_key_files++] = _PATH_HOST_DSA_KEY_FILE; 129 if (options->protocol & SSH_PROTO_2) {
130 options->host_key_files[options->num_host_key_files++] =
131 _PATH_HOST_RSA_KEY_FILE;
132 options->host_key_files[options->num_host_key_files++] =
133 _PATH_HOST_DSA_KEY_FILE;
134 }
130 } 135 }
131 if (options->num_ports == 0) 136 if (options->num_ports == 0)
132 options->ports[options->num_ports++] = SSH_DEFAULT_PORT; 137 options->ports[options->num_ports++] = SSH_DEFAULT_PORT;