aboutsummaryrefslogtreecommitdiff
path: root/perl/Wallet/Object
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-10-10 20:15:30 +0000
committerRuss Allbery <rra@stanford.edu>2007-10-10 20:15:30 +0000
commit8b4f558134a618660c424d2dabd90033b7b8e4b9 (patch)
tree9ea16848ae6add6c37a73acb8d4f3551d975337a /perl/Wallet/Object
parent9e6b38452a221eca3c0ac775ba08ab4696716b71 (diff)
Make enctype changes in sorted order so that the history trace is reliable
and can be tested.
Diffstat (limited to 'perl/Wallet/Object')
-rw-r--r--perl/Wallet/Object/Keytab.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl/Wallet/Object/Keytab.pm b/perl/Wallet/Object/Keytab.pm
index a818f15..f91abff 100644
--- a/perl/Wallet/Object/Keytab.pm
+++ b/perl/Wallet/Object/Keytab.pm
@@ -428,8 +428,9 @@ sub enctypes_set {
# When inserting new enctypes, we unfortunately have to do the
# consistency check against the enctypes table ourselves, since SQLite
- # doesn't enforce integrity constraints.
- for my $enctype (keys %enctypes) {
+ # doesn't enforce integrity constraints. We do this in sorted order
+ # to make it easier to test.
+ for my $enctype (sort keys %enctypes) {
$sql = 'select en_name from enctypes where en_name = ?';
my $status = $self->{dbh}->selectrow_array ($sql, undef, $enctype);
unless ($status) {