diff options
author | Richard Basch <probe@mit.edu> | 1995-10-24 23:11:06 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1995-10-24 23:11:06 +0000 |
commit | 622be3d0f5937f863037ee25cda76ff09fb3b19e (patch) | |
tree | 2ef8d96387b0ff4738b4c8e2f9bdd68b957b73a3 /src/appl/telnet/telnetd | |
parent | a2e7d8bebd122f062a11052de944bedd690a2b91 (diff) | |
download | krb5-622be3d0f5937f863037ee25cda76ff09fb3b19e.tar.gz krb5-622be3d0f5937f863037ee25cda76ff09fb3b19e.tar.xz krb5-622be3d0f5937f863037ee25cda76ff09fb3b19e.zip |
Reversed the check for strchr(). If strchr(varp, '=') is true then we
reject the bad environment variable as it contains an =.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6993 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/telnet/telnetd')
-rw-r--r-- | src/appl/telnet/telnetd/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appl/telnet/telnetd/state.c b/src/appl/telnet/telnetd/state.c index b364dfff1..921425980 100644 --- a/src/appl/telnet/telnetd/state.c +++ b/src/appl/telnet/telnetd/state.c @@ -1629,7 +1629,7 @@ char *varp; if (!strncmp(varp, "LD_", 3) || !strncmp(varp, "_RLD_", 5) || !strncmp(varp, "ELF_LD_", 7) || !strcmp(varp, "LIBPATH") || !strcmp(varp, "IFS") || - !strchr(varp, '=')) + strchr(varp, '=')) { syslog(LOG_INFO, "Rejected the attempt to modify the environment variable \"%s\"", varp); return 0; |