mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::rfc1035: Throw on invalid SRV target string during answer parse.
This commit is contained in:
parent
5d47caee1e
commit
f12a4bfdd1
1 changed files with 1 additions and 0 deletions
|
@ -372,6 +372,7 @@ ircd::rfc1035::record::SRV::SRV(const answer &answer)
|
||||||
tgt = string_view{this->tgtbuf, len - 1};
|
tgt = string_view{this->tgtbuf, len - 1};
|
||||||
pos += len;
|
pos += len;
|
||||||
|
|
||||||
|
valid_name(tgt); // throws
|
||||||
assert(std::distance(pos, end(rdata)) >= 0);
|
assert(std::distance(pos, end(rdata)) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue