Permalink
Browse files

Merge pull request #1 from marschap/next

two small fixes for Authen::SASL
  • Loading branch information...
2 parents d66937c + c384891 commit 2ab3069048a957d6b3b2123662b8fa1491779082 @gbarr committed Sep 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Authen/SASL.pod
  2. +1 −1 lib/Authen/SASL/Perl.pm
View
@@ -62,7 +62,7 @@ or if you have another plugin module that supports the Authen::SASL API
=item new ( OPTIONS )
-The contructor may be called with or without arguments. Passing arguments is
+The constructor may be called with or without arguments. Passing arguments is
just a short cut to calling the C<mechanism> and C<callback> methods.
=over 4
View
@@ -176,7 +176,7 @@ sub _secflags { 0 }
sub securesocket {
my $self = shift;
- return $_[0] unless ($self->property('ssf') > 0);
+ return $_[0] unless (defined($self->property('ssf')) && $self->property('ssf') > 0);
local *GLOB; # avoid used only once warning
my $glob = \do { local *GLOB; };

0 comments on commit 2ab3069

Please sign in to comment.