/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.96-eval_dkim_policies.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme9/qpsmtpd-0.96-eval_dkim_policies.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jul 5 20:32:39 2016 UTC (8 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_96-9_el6_sme, HEAD
Error occurred while calculating annotation data.
* Tue Jul 5 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-7.sme
- Use eval to fetch dkim policies, prevent fatal errors in case of DNS
  timeout [SME: 9504]

1 diff -Nur qpsmtpd-0.96/plugins/dkim qpsmtpd-0.96_bz9480/plugins/dkim
2 --- qpsmtpd-0.96/plugins/dkim 2016-07-05 22:08:55.700102610 +0200
3 +++ qpsmtpd-0.96_bz9480/plugins/dkim 2016-07-05 22:11:51.485075880 +0200
4 @@ -262,7 +262,9 @@
5 push @data, "selector: " . $dkim->signature->selector if $dkim->signature;
6 push @data, "result: " . $dkim->result_detail if $dkim->result_detail;
7
8 - foreach my $policy ($dkim->policies) {
9 + my @policies = eval { $dkim->policies };
10 +
11 + foreach my $policy (@policies) {
12 next if !$policy;
13 push @data, "policy: " . $policy->as_string;
14 push @data, "name: " . $policy->name;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed