summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readconf.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2018-06-10 23:45:41 +0000
committerdjm <djm@openbsd.org>2018-06-10 23:45:41 +0000
commit0f2c1939312eeb99e3dbaf336a72e6b7b8bc8f56 (patch)
tree6eeed326295eb1bc93a9847269693385820f6484 /usr.bin/ssh/readconf.c
parentWhen a TLS error occurs, print the tls_error() message as part of the (diff)
downloadwireguard-openbsd-0f2c1939312eeb99e3dbaf336a72e6b7b8bc8f56.tar.xz
wireguard-openbsd-0f2c1939312eeb99e3dbaf336a72e6b7b8bc8f56.zip
unbreak SendEnv; patch from tb@
Diffstat (limited to 'usr.bin/ssh/readconf.c')
-rw-r--r--usr.bin/ssh/readconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index e222f1db11b..6f1adbeccc0 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.290 2018/06/09 03:01:12 djm Exp $ */
+/* $OpenBSD: readconf.c,v 1.291 2018/06/10 23:45:41 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1389,7 +1389,7 @@ parse_keytypes:
filename, linenum);
options->send_env = xrecallocarray(
options->send_env, options->num_send_env,
- options->num_send_env,
+ options->num_send_env + 1,
sizeof(*options->send_env));
options->send_env[options->num_send_env++] =
xstrdup(arg);