From: Steve Holme Date: Sat, 14 Sep 2013 15:18:47 +0000 (+0100) Subject: ftpserver.pl: Corrected invalid argument check in POP3 TOP handler X-Git-Tag: upstream/7.37.1~1289 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45e0a661cece6a2c2af2e946b5ef67b5aac01c68;p=platform%2Fupstream%2Fcurl.git ftpserver.pl: Corrected invalid argument check in POP3 TOP handler ...which was accidentally introduced in commit 4d6ef6297ae9b6. --- 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 {