From: Richard Basch Date: Tue, 24 Oct 1995 23:11:06 +0000 (+0000) Subject: Reversed the check for strchr(). If strchr(varp, '=') is true then we X-Git-Tag: krb5-1.0-beta6~876 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=622be3d0f5937f863037ee25cda76ff09fb3b19e;p=krb5.git 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 --- 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;