Skip to content
Snippets Groups Projects
Commit 01f7a758 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

review: stronger function argument check

parent 444c2122
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
_public_
int knot_naptr_header_size(const uint8_t *naptr, const uint8_t *maxp)
{
if (!naptr || !maxp || naptr > maxp) {
if (!naptr || !maxp || naptr >= maxp) {
return KNOT_EINVAL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment