diff --git a/readconf.c b/readconf.c index 8ff23c05c..8d2029547 100644 --- a/readconf.c +++ b/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 * Copyright (c) 1995 Tatu Ylonen , 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);