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

Contents of /rpms/qpsmtpd/sme10/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:22:39 2016 UTC (8 years, 4 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-15_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-18_el7_sme, HEAD
* Tue Jul 15 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-15.sme
- Use eval to fetch dkim policies, prevent fatal errors in case of DNS
  timeout [SME: 9480]

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