diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | sshd.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -9,6 +9,8 @@ | |||
9 | - Removed redundant subdirectories | 9 | - Removed redundant subdirectories |
10 | - Integrated part of a patch from Dan Brosemer <odin@linuxfreak.com> for | 10 | - Integrated part of a patch from Dan Brosemer <odin@linuxfreak.com> for |
11 | building on Debian. | 11 | building on Debian. |
12 | - Fixed off-by-one error in PAM env patch | ||
13 | - Released 1.2pre6 | ||
12 | 14 | ||
13 | 19991028 | 15 | 19991028 |
14 | - Further PAM enhancements. | 16 | - Further PAM enhancements. |
@@ -18,7 +18,7 @@ agent connections. | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "includes.h" | 20 | #include "includes.h" |
21 | RCSID("$Id: sshd.c,v 1.8 1999/10/29 01:49:20 damien Exp $"); | 21 | RCSID("$Id: sshd.c,v 1.9 1999/10/29 03:09:40 damien Exp $"); |
22 | 22 | ||
23 | #include "xmalloc.h" | 23 | #include "xmalloc.h" |
24 | #include "rsa.h" | 24 | #include "rsa.h" |
@@ -2365,7 +2365,7 @@ void do_child(const char *command, struct passwd *pw, const char *term, | |||
2365 | char **pam_env = pam_getenvlist((pam_handle_t *)pamh); | 2365 | char **pam_env = pam_getenvlist((pam_handle_t *)pamh); |
2366 | for(this_var = 0; pam_env && pam_env[this_var]; this_var++) | 2366 | for(this_var = 0; pam_env && pam_env[this_var]; this_var++) |
2367 | { | 2367 | { |
2368 | if(strlen(pam_env[this_var]) < sizeof(var_name)) | 2368 | if(strlen(pam_env[this_var]) < (sizeof(var_name) - 1)) |
2369 | if((equal_sign = strstr(pam_env[this_var], "=")) != NULL) | 2369 | if((equal_sign = strstr(pam_env[this_var], "=")) != NULL) |
2370 | { | 2370 | { |
2371 | memset(var_name, 0, sizeof(var_name)); | 2371 | memset(var_name, 0, sizeof(var_name)); |