fixed a parsing bug of a compressed domain name placed at the end of the packet

This commit is contained in:
2020-04-28 11:27:24 +00:00
parent a0545235dd
commit c52ce87aa4
2 changed files with 77 additions and 15 deletions

View File

@ -317,6 +317,7 @@ struct mio_dns_brrd_cname_t
};
typedef struct mio_dns_brrd_cname_t mio_dns_brc_cname_t;
#endif
/* 3.3.9 MX RDATA format */
struct mio_dns_brrd_mx_t
@ -325,8 +326,8 @@ struct mio_dns_brrd_mx_t
mio_bch_t* exchange;
};
typedef struct mio_dns_brrd_mx_t mio_dns_brrd_mx_t;
#endif
/* 3.3.13. SOA RDATA format */
struct mio_dns_brrd_soa_t
{
mio_bch_t* mname;