A nice little security fix. Things must be rough in moscow...

Submitted by:	dima@demos.su (Dima Ruban)
This commit is contained in:
Poul-Henning Kamp 1994-10-22 17:19:49 +00:00
parent 1666a8c2af
commit b6cbdb1d7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3791

View File

@ -87,6 +87,11 @@ process_request(mp, rp)
rp->answer = BADCTLADDR;
return;
}
if (strchr(mp->l_name, 27)) {
syslog(LOG_NOTICE, "Illegal user name. Aborting");
rp->answer = FAILED;
return;
}
mp->pid = ntohl(mp->pid);
if (debug)
print_request("process_request", mp);