diff options
author | Damien Miller <djm@mindrot.org> | 2005-03-05 11:22:50 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-03-05 11:22:50 +1100 |
commit | f8e7accd01d216439bd76e2bd13e87f4bfa6eca2 (patch) | |
tree | 706699a63a115efdc42ff980a521eb88c778724c /readconf.c | |
parent | b022b23584f72970c3028401e33577282371cfe7 (diff) |
- djm@cvs.openbsd.org 2005/03/04 08:48:06
[readconf.c]
fix SendEnv config parsing bug found by Roumen Petrov; ok dtucker@
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: readconf.c,v 1.136 2005/03/01 10:40:26 djm Exp $"); +RCSID("$OpenBSD: readconf.c,v 1.137 2005/03/04 08:48:06 djm Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -775,6 +775,8 @@ parse_int: if (strchr(arg, '=') != NULL) fatal("%s line %d: Invalid environment name.", filename, linenum); + if (!*activep) + continue; if (options->num_send_env >= MAX_SEND_ENV) fatal("%s line %d: too many send env.", filename, linenum); |