diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: ssh.c,v 1.221 2004/06/21 17:36:31 avsm Exp $"); | 43 | RCSID("$OpenBSD: ssh.c,v 1.222 2004/06/23 14:31:01 dtucker Exp $"); |
44 | 44 | ||
45 | #include <openssl/evp.h> | 45 | #include <openssl/evp.h> |
46 | #include <openssl/err.h> | 46 | #include <openssl/err.h> |
@@ -1304,9 +1304,11 @@ control_client(const char *path) | |||
1304 | 1304 | ||
1305 | buffer_put_int(&m, num_env); | 1305 | buffer_put_int(&m, num_env); |
1306 | 1306 | ||
1307 | for (i = 0; environ[i] != NULL && num_env >= 0; i++, num_env--) | 1307 | for (i = 0; environ[i] != NULL && num_env >= 0; i++) |
1308 | if (env_permitted(environ[i])) | 1308 | if (env_permitted(environ[i])) { |
1309 | num_env--; | ||
1309 | buffer_put_cstring(&m, environ[i]); | 1310 | buffer_put_cstring(&m, environ[i]); |
1311 | } | ||
1310 | } | 1312 | } |
1311 | 1313 | ||
1312 | if (ssh_msg_send(sock, /* version */0, &m) == -1) | 1314 | if (ssh_msg_send(sock, /* version */0, &m) == -1) |