Skip to content

Commit

Permalink
I think this fixes a bug that always enable auth-conf when
Browse files Browse the repository at this point in the history
the system doesn't support it and vice-versa
  • Loading branch information
yannk authored and gbarr committed Sep 24, 2009
1 parent cb31e47 commit dd52c33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Authen/SASL/Perl/DIGEST_MD5.pm
Expand Up @@ -119,10 +119,11 @@ my @ourciphers = (
);

## The system we are on, might not be able to crypt the stream
my $NO_CRYPT_AVAILABLE = 0;
my $NO_CRYPT_AVAILABLE = 1;
for (@ourciphers) {
if ( eval "require $_->{pkg}" ) {
$NO_CRYPT_AVAILABLE = 1;
eval "require $_->{pkg}";
unless ($@) {
$NO_CRYPT_AVAILABLE = 0;
last;
}
}
Expand Down

0 comments on commit dd52c33

Please sign in to comment.