Fixed the brain-o in rev. 1.10: the logic check was reversed.

Reported by:	Bernd Fuerwitt <bf@fuerwitt.de>
This commit is contained in:
Ruslan Ermilov 2001-06-27 14:11:25 +00:00
parent 6206c8dc91
commit 3277d1c498
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78886
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ int maxpacketsize /* The maximum size this packet can grow to (including header
* properly terminated with CRLF.
*/
pflags = GetProtocolFlags(link);
if (dlen <= MAX_MESSAGE_SIZE && (pflags & WAIT_CRLF)) {
if (dlen <= MAX_MESSAGE_SIZE && !(pflags & WAIT_CRLF)) {
ftp_message_type = FTP_UNKNOWN_MESSAGE;
if (ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER) {

View File

@ -131,7 +131,7 @@ int maxpacketsize /* The maximum size this packet can grow to (including header
* properly terminated with CRLF.
*/
pflags = GetProtocolFlags(link);
if (dlen <= MAX_MESSAGE_SIZE && (pflags & WAIT_CRLF)) {
if (dlen <= MAX_MESSAGE_SIZE && !(pflags & WAIT_CRLF)) {
ftp_message_type = FTP_UNKNOWN_MESSAGE;
if (ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER) {