|Subject:||Infinite loop in Net::SMTP::auth with Authen::SASL::XS installed|
I'm trying to use Net::SMTP to connect to an SMTP server that requires authentication to send email. With Authen::SASL::XS (1.00) installed, Net::SMTP::auth falls into an endless loop trying to find a working auth mechanism. $str = $client->client_start; (line 203) returns undef. $client->error returns: "invalid parameter suppliedSASL(-7): invalid parameter supplied: Parameter error in client.c near line 709client_start error. (Callbacks?)" $client is now set but $client->mechanism returns undef. Therefore $mechanisms =~ s/\b\Q$failed_mechanism\E\b//; does not change $mechanisms at all and the loop tries the same $mechanisms over and over again. Uninstalling Authen::SASL::XS is as a workaround for us since with Authen::SASL::Perl everything seems to work just fine.