Skip to content
Snippets Groups Projects
Commit ee5e2cf6 authored by Steve Holme's avatar Steve Holme
Browse files

ftpserver.pl: Fixed empty array checks

...from commits 28427b40 and e8313697.
parent e8313697
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment