diff options
Diffstat (limited to 'perl/lib/Mail/Rspamd/Client.pm')
-rw-r--r-- | perl/lib/Mail/Rspamd/Client.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl/lib/Mail/Rspamd/Client.pm b/perl/lib/Mail/Rspamd/Client.pm index dd09d4a2f..100bfad68 100644 --- a/perl/lib/Mail/Rspamd/Client.pm +++ b/perl/lib/Mail/Rspamd/Client.pm @@ -670,6 +670,9 @@ sub _auth { if (sysread($sock, $reply, 255)) { if ($reply =~ /^password accepted/) { + return 0 unless $self->_get_io_readiness($sock, 0); + # read "END" + sysread($sock, $reply, 255); return 1; } } |