mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
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:
parent
6206c8dc91
commit
3277d1c498
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78886
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user