summaryrefslogtreecommitdiffstats
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c
index 63356a6e..cf794988 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.371 2023/01/02 07:03:30 djm Exp $ */
+/* $OpenBSD: readconf.c,v 1.372 2023/01/13 02:58:20 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2327,6 +2327,7 @@ void
initialize_options(Options * options)
{
memset(options, 'X', sizeof(*options));
+ options->host_arg = NULL;
options->forward_agent = -1;
options->forward_agent_sock_path = NULL;
options->forward_x11 = -1;
@@ -3278,6 +3279,7 @@ dump_client_config(Options *o, const char *host)
free(all_key);
/* Most interesting options first: user, host, port */
+ dump_cfg_string(oHost, o->host_arg);
dump_cfg_string(oUser, o->user);
dump_cfg_string(oHostname, host);
dump_cfg_int(oPort, o->port);