diff options
Diffstat (limited to 'perl/Wallet/Object/Keytab.pm')
| -rw-r--r-- | perl/Wallet/Object/Keytab.pm | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/perl/Wallet/Object/Keytab.pm b/perl/Wallet/Object/Keytab.pm index f91abff..025c9e1 100644 --- a/perl/Wallet/Object/Keytab.pm +++ b/perl/Wallet/Object/Keytab.pm @@ -467,9 +467,11 @@ sub enctypes_list {          while (defined ($entry = $sth->fetchrow_arrayref)) {              push (@enctypes, @$entry);          } +        $self->{dbh}->commit;      };      if ($@) {          $self->error ($@); +        $self->{dbh}->rollback;          return;      }      return @enctypes; @@ -562,9 +564,11 @@ sub attr {                  while (defined ($target = $sth->fetchrow_array)) {                      push (@targets, $target);                  } +                $self->{dbh}->commit;              };              if ($@) {                  $self->error ($@); +                $self->{dbh}->rollback;                  return;              }              return @targets; | 
