diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 15:50:21 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 15:50:21 +0200 |
commit | 795ffc5e62e8ba383575dbcd9943a580d4bd3358 (patch) | |
tree | c128889056202b255e2f22afeb7717894d350862 /src/dnsstub/dns_txt.c | |
parent | 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (diff) |
formatting changes
Manual format adjustments.
Comment adjustments.
Remove usage of the register keyword.
Diffstat (limited to 'src/dnsstub/dns_txt.c')
-rw-r--r-- | src/dnsstub/dns_txt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dnsstub/dns_txt.c b/src/dnsstub/dns_txt.c index ce0afc4..8368a05 100644 --- a/src/dnsstub/dns_txt.c +++ b/src/dnsstub/dns_txt.c @@ -29,7 +29,7 @@ int dns_txt_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_TXT)) + if (byte_equal(header, 2, DNS_T_TXT)) { if (byte_equal(header + 2, 2, DNS_C_IN)) { if (pos + datalen > len) return DNS_ERR; txtlen = (unsigned char)buf[pos]; @@ -44,6 +44,7 @@ int dns_txt_packet(stralloc *out, const char *buf, unsigned int len) } } } + } pos += datalen; ++ranswers; if (numanswers) |