summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--sshd.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 04a5f7d88..02eeb8acb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
1319991028 1519991028
14 - Further PAM enhancements. 16 - Further PAM enhancements.
diff --git a/sshd.c b/sshd.c
index 028c495f7..a4af9e2a3 100644
--- a/sshd.c
+++ b/sshd.c
@@ -18,7 +18,7 @@ agent connections.
18*/ 18*/
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: sshd.c,v 1.8 1999/10/29 01:49:20 damien Exp $"); 21RCSID("$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));