From 3277d1c4985f3c0d38dfa40b42ab0346ad78c784 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 27 Jun 2001 14:11:25 +0000 Subject: [PATCH] Fixed the brain-o in rev. 1.10: the logic check was reversed. Reported by: Bernd Fuerwitt --- lib/libalias/alias_ftp.c | 2 +- sys/netinet/libalias/alias_ftp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c index eba434bd7c75..4d488e2a287d 100644 --- a/lib/libalias/alias_ftp.c +++ b/lib/libalias/alias_ftp.c @@ -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) { diff --git a/sys/netinet/libalias/alias_ftp.c b/sys/netinet/libalias/alias_ftp.c index eba434bd7c75..4d488e2a287d 100644 --- a/sys/netinet/libalias/alias_ftp.c +++ b/sys/netinet/libalias/alias_ftp.c @@ -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) {