diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-08 23:59:49 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-08 23:59:49 +0100 |
commit | ee5e2cf6cbe78da65275e7e08e78266b1686811a (patch) | |
tree | 0c200db3c13574bb424263dab85a600d80183105 | |
parent | e8313697b6554b4aff021c61add44971815fad59 (diff) |
ftpserver.pl: Fixed empty array checks
...from commits 28427b408326a1 and e8313697b6554b.
-rwxr-xr-x | tests/ftpserver.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 18c8482bc..0b4e1a64a 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -778,7 +778,7 @@ sub fix_imap_params { sub CAPABILITY_imap { my ($testno) = @_; - if((!$capabilities) && (!$auth_mechs)) { + if((!@capabilities) && (!@auth_mechs)) { sendcontrol "$cmdid BAD Command\r\n"; } else { @@ -1200,7 +1200,7 @@ sub LOGOUT_imap { sub CAPA_pop3 { my ($testno) = @_; - if((!$capabilities) && (!$auth_mechs)) { + if((!@capabilities) && (!@auth_mechs)) { sendcontrol "-ERR Unsupported command: 'CAPA'\r\n"; } else { @@ -1244,7 +1244,7 @@ sub CAPA_pop3 { sub AUTH_pop3 { my ($testno) = @_; - if(!$auth_mechs) { + if(!@auth_mechs) { sendcontrol "-ERR Unsupported command: 'AUTH'\r\n"; } else { |