Skip to content

Commit

Permalink
- Fixes #3: ldap_set_rebind_proc XS being called with invalid argume…
Browse files Browse the repository at this point in the history
…nts from set_rebind_proc
  • Loading branch information
phillipod committed Apr 26, 2015
1 parent bb1796a commit 124d070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net-ldapapi/trunk/LDAPapi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1821,10 +1821,10 @@ sub set_rebind_proc
my ($self, @args) = @_;
my ($status);

my ($rebindproc) = $self->rearrange(['REBINDPROC'], @args);
my ($rebindproc, $params) = $self->rearrange(['REBINDPROC', 'PARAMS'], @args);

if( ref($rebindproc) eq "CODE" ) {
$status = ldap_set_rebind_proc($self->{"ld"}, $rebindproc);
$status = ldap_set_rebind_proc($self->{"ld"}, $rebindproc, $params);
} else {
croak("REBINDPROC is not a CODE Reference");
}
Expand Down

0 comments on commit 124d070

Please sign in to comment.