upstream: unbreak SendEnv; patch from tb@

OpenBSD-Commit-ID: fc808daced813242563b80976e1478de95940056
This commit is contained in:
djm@openbsd.org 2018-06-10 23:45:41 +00:00 committed by Damien Miller
parent acf4260f09
commit 89a85d7247

View File

@ -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
@ -1404,7 +1404,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);