diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 19:03:11 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 19:03:11 +0200 |
commit | 20b85c03e751b4876fa3c92040464e483172b746 (patch) | |
tree | 734fadbfdbc143ec4465093857f4c239448715e0 /src/dns_tlsa.c | |
parent | a6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff) |
manual format adjustment
Diffstat (limited to 'src/dns_tlsa.c')
-rw-r--r-- | src/dns_tlsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dns_tlsa.c b/src/dns_tlsa.c index 52f7d83..612c6b3 100644 --- a/src/dns_tlsa.c +++ b/src/dns_tlsa.c @@ -30,11 +30,12 @@ int dns_tlsa_packet(stralloc *out, const char *buf, unsigned int len) pos = dns_packet_copy(buf, len, pos, header, 10); if (!pos) return DNS_ERR; uint16_unpack_big(header + 8, &datalen); - if (byte_equal(header, 2, DNS_T_TLSA)) + if (byte_equal(header, 2, DNS_T_TLSA)) { if (byte_equal(header + 2, 2, DNS_C_IN)) { if (pos + datalen > len) return DNS_ERR; if (!stralloc_catb(out, buf + pos, datalen)) return DNS_MEM; } + } pos += datalen; ++ranswers; } |