commit 43613b9ec24600ac3faa951256f3bb6b2ee4e261 from: Kirill A. Korinsky date: Fri Jan 31 23:34:01 2025 UTC Do not treat ar_h_errno == NO_DATA as error OpenBSD's asr returns ar_h_errno == NO_DATA when it had a fallback from UDP to TCP, so I should tolerate it as well. commit - a3ad827f603b0c6ef0845a37c8007221ab4d4142 commit + 43613b9ec24600ac3faa951256f3bb6b2ee4e261 blob - e887fabc148308e67ba82834ede9ac962421c10a blob + 9bf3a4b3cdc1fbc115cdffe68a5a06f64d7d2c3e --- main.c +++ main.c @@ -1127,7 +1127,7 @@ dkim_rr_resolve(struct asr_result *ar, void *arg) hstrerror(ar->ar_h_errno)); goto verify; } - if (ar->ar_h_errno != NETDB_SUCCESS) { + if (ar->ar_h_errno == HOST_NOT_FOUND) { dkim_signature_state(sig, DKIM_PERMERROR, hstrerror(ar->ar_h_errno)); goto verify;