diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-29 21:18:02 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-05-03 12:09:38 -0400 |
commit | 3b6a4e97eab023f3792efde5bcb82a6e2688b15c (patch) | |
tree | f05e99fbe9fc0ab9dc30d293b68837f8e2cfa03a /factory | |
parent | f7a92d1a7e351886fc1debb7f4b448287d18c20c (diff) |
dhcp-identifier: un-inline dhcp_validate_duid_len
After all it is used in more than one place and is not that short.
Also tweak the test a bit:
- do not check that duid_len > 0, because we want to allow unknown
duid types, and there might be some which are fine with 0 length data,
(also assert should not be called from library code),
- always check that duid_len <= MAX_DUID_LEN, because we could overwrite
available buffer space otherwise.
Diffstat (limited to 'factory')
0 files changed, 0 insertions, 0 deletions