Skip to content

Commit

Permalink
Merge pull request trusteddomainproject#156 from RUBNOC/fixDNAME
Browse files Browse the repository at this point in the history
Skip DNAME RRs in DNS answers
  • Loading branch information
futatuki committed Apr 24, 2024
2 parents bf9595a + dc9f097 commit 4dda8eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libopendkim/dkim-atps.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ dkim_atps_check(DKIM *dkim, DKIM_SIGINFO *sig, struct timeval *timeout,
cp += n;
continue;
}
else if (type == T_RRSIG)
else if ((type == T_RRSIG) || (type == T_DNAME))
{
/* get payload length */
if (cp + INT16SZ > eom)
Expand Down
2 changes: 1 addition & 1 deletion libopendkim/dkim-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ dkim_get_key_dns(DKIM *dkim, DKIM_SIGINFO *sig, u_char *buf, size_t buflen)
cp += n;
continue;
}
else if (type == T_RRSIG)
else if ((type == T_RRSIG) || (type == T_DNAME))
{
cp += n;
continue;
Expand Down
2 changes: 1 addition & 1 deletion libopendkim/dkim-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ dkim_repinfo(DKIM *dkim, DKIM_SIGINFO *sig, struct timeval *timeout,
cp += n;
continue;
}
else if (type == T_RRSIG)
else if ((type == T_RRSIG) || (type == T_DNAME))
{
/* get payload length */
if (cp + INT16SZ > eom)
Expand Down
2 changes: 1 addition & 1 deletion librbl/rbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ rbl_query_check(RBL *rbl, void *qh, struct timeval *timeout, uint32_t *res)
cp += n;
continue;
}
else if (type == T_RRSIG)
else if ((type == T_RRSIG) || (type == T_DNAME))
{
/* get payload length */
if (cp + INT16SZ > eom)
Expand Down

0 comments on commit 4dda8eb

Please sign in to comment.