From: cebka@lenovo-laptop Date: Mon, 15 Mar 2010 18:31:54 +0000 (+0300) Subject: * Read 'END' after password command X-Git-Tag: 0.3.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d41fec74be04d13bd07adffe796c66cc52d8c4b7;p=thirdparty%2Frspamd.git * Read 'END' after password command --- diff --git a/perl/lib/Mail/Rspamd/Client.pm b/perl/lib/Mail/Rspamd/Client.pm index dd09d4a2ff..100bfad681 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; } }