- add fix for possible DANE problem

This commit is contained in:
Dirk Meyer 2020-10-04 19:49:32 +00:00
parent 4a912eb9e7
commit 54cd28389b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=551445
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= meta1
PORTVERSION= 1.1.0a.15.2
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.MeTA1.org/download/.alpha/3rdt/
DISTNAME= ${PORTNAME}-1.1.Alpha15.2

View File

@ -0,0 +1,12 @@
--- smtpc/smtpch.c Sat Jun 20 09:00:11 2020
+++ sm-9/mta/smtpc/smtpch.c Thu Oct 1 10:52:53 2020
@@ -1642,7 +1646,7 @@
if (!IPADDR_EQ(*srvaddr, tdcnf->tlsdanecnf_ips[ui]))
continue;
tdcnf->tlsdanecnf_hn_idx = (int) ui;
- for (d = 0; d < tdcnf->tlsdanecnf_ips_n; d++) {
+ for (d = 0; d < SM_ARRAY_SIZE(tdcnf->tlsdanecnf_pubkey_fps); d++) {
if (NULL == tdcnf->tlsdanecnf_pubkey_fps[d])
continue;
if (!tlsaapplies(d, tdcnf->tlsdanecnf_ip2pk[ui]))