summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-06-27 14:11:25 +0000
committerru <ru@FreeBSD.org>2001-06-27 14:11:25 +0000
commit61d088ba8d3e9bcd389b807e82ed249471987daf (patch)
tree2dc26a694b551858c6e30a76f57dd9c1fd1ae7cf /sys/netinet/libalias
parent6cb2bc37f11df73758a970fc32fc6173d5276118 (diff)
downloadFreeBSD-src-61d088ba8d3e9bcd389b807e82ed249471987daf.zip
FreeBSD-src-61d088ba8d3e9bcd389b807e82ed249471987daf.tar.gz
Fixed the brain-o in rev. 1.10: the logic check was reversed.
Reported by: Bernd Fuerwitt <bf@fuerwitt.de>
Diffstat (limited to 'sys/netinet/libalias')
-rw-r--r--sys/netinet/libalias/alias_ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias_ftp.c b/sys/netinet/libalias/alias_ftp.c
index eba434b..4d488e2 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) {
OpenPOWER on IntegriCloud