netdoc: Remove a TODO hs comment.

It said to check whether C enforces an absence of extraneous bytes
at the end of the link specifiers.  It does, in
`hs_desc.c:decode_link_specifiers()`, where it says:

```
  if (link_specifier_list_parse(&specs, decoded,
                                (size_t) decoded_len) < decoded_len) {
    goto err;
  }
```

The comparison with "decoded_len" checks whether all the bytes were
decoded.
This commit is contained in:
Nick Mathewson 2023-02-17 15:06:09 -05:00
parent 4060e293fb
commit 757c6d333f
1 changed files with 0 additions and 1 deletions

View File

@ -166,7 +166,6 @@ impl HsDescInner {
let mut r = tor_bytes::Reader::from_slice(ls.as_bytes());
let n = r.take_u8()?;
let res = r.extract_n(n.into())?;
// TODO hs: Check whether c tor enforces that this field is exhausted.
r.should_be_exhausted()?;
res
};