You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If SigingTable and KeyTable is specified in config file and the dataset type of SigningTable has capability of db walk operation, opendkim milter performs consistency check on loading config file, for each entry in SigningTable if the keyname specified by the entry exists in KeyTable.
However while retrieving a SigningTable entry, it does not check error status on dkimf_db_walk() .
while (dkimf_db_walk(conf->conf_signtabledb, first,
NULL, NULL, dbd, 2) ==0)
So if there exists an bogus entry that causes error in SigingTable, the check would finish without error here, and rest of records in SigningTables does not checked.
Also, although the second field in values in SigningTable should be optional, it does not treat them in the consistency check above.
…e229-fix-signingtable-verification
Fix issue trusteddomainproject#229: fix db handling on verification of SigningTable
in dkimf_config_load
- check error on calling dkimf_db_walk()
- fix request parameter for "signer" field in SigningTable
trusteddomainproject#230trusteddomainproject#229
If SigingTable and KeyTable is specified in config file and the dataset type of SigningTable has capability of db walk operation, opendkim milter performs consistency check on loading config file, for each entry in SigningTable if the keyname specified by the entry exists in KeyTable.
However while retrieving a SigningTable entry, it does not check error status on
dkimf_db_walk()
.OpenDKIM/opendkim/opendkim.c
Lines 8348 to 8349 in 835834e
So if there exists an bogus entry that causes error in SigingTable, the check would finish without error here, and rest of records in SigningTables does not checked.
Also, although the second field in values in SigningTable should be optional, it does not treat them in the consistency check above.
OpenDKIM/opendkim/opendkim.c
Lines 8341 to 8349 in 835834e
e.g. a flat file SigningTable like below would not be checked at all:
The text was updated successfully, but these errors were encountered: