aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-22 02:58:23 +0100
committerGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-22 02:58:23 +0100
commitf674299b721d26ea97fc36e7e6818a84f3d311d3 (patch)
tree75c23d231e57296357d27b1ec78686c06a895980 /misc
parent9f75efbed94052726c64284bad49d37ce905172f (diff)
Better check for domain existence.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/deleteExpiredEntries.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/deleteExpiredEntries.pl b/misc/deleteExpiredEntries.pl
index d4de6b6..3cbf570 100755
--- a/misc/deleteExpiredEntries.pl
+++ b/misc/deleteExpiredEntries.pl
@@ -53,14 +53,14 @@ die $entries->error."\n" if $entries->code;
$fp->done;
sub delete_entry {
- shift;
- my $obj = shift;
+ my ($mesg, $obj) = @_;
if (defined $obj and $obj->isa('Net::LDAP::Entry')) {
# print STDERR "Deleting DN ".$obj->dn."\n";
$obj->delete;
my $mesg = $obj->update($fp->ldap);
die $mesg->error."\n" if $mesg->code;
}
+ $mesg->pop_entry;
}