diff options
Diffstat (limited to 'debian/patches/0008-invalid-ldap-url.patch')
-rw-r--r-- | debian/patches/0008-invalid-ldap-url.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/0008-invalid-ldap-url.patch b/debian/patches/0008-invalid-ldap-url.patch new file mode 100644 index 0000000..9ed5ca1 --- /dev/null +++ b/debian/patches/0008-invalid-ldap-url.patch @@ -0,0 +1,17 @@ +Make sure that an invalid url error generates output as well as +stopping processing. + +diff --git a/perl/lib/Wallet/Object/File.pm b/perl/lib/Wallet/Object/File.pm +index e892589..e676759 100644 +--- a/perl/lib/Wallet/Object/File.pm ++++ b/perl/lib/Wallet/Object/File.pm +@@ -118,8 +118,7 @@ sub _get_crypt_key { + my $url = $Wallet::Config::LDAP_SECRET; + $url =~ s{^ldap:///}{}xmsi; + if ($url eq $Wallet::Config::LDAP_SECRET) { +- self->error("ERROR: Invalid LDAP URL $url"); +- exit 1; ++ die("ERROR: Invalid LDAP URL $url"); + } + my @parts = split /\?/, $url; + my $base = $parts[0]; |