From 45e0a661cece6a2c2af2e946b5ef67b5aac01c68 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 14 Sep 2013 16:18:47 +0100 Subject: [PATCH] ftpserver.pl: Corrected invalid argument check in POP3 TOP handler ...which was accidentally introduced in commit 4d6ef6297ae9b6. --- tests/ftpserver.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 075e02e..78e50c6 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -1584,7 +1584,7 @@ sub TOP_pop3 { if (!grep /^TOP$/, @capabilities) { sendcontrol "-ERR Unrecognized command\r\n"; } - elsif ((!$msg) || (!$lines)) { + elsif (($msg eq "") || ($lines eq "")) { sendcontrol "-ERR Protocol error\r\n"; } else { -- 2.7.4