Skip to content
Snippets Groups Projects
Commit dfb6c319 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib/rplan: check for null name

parent df521e19
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,8 @@ int kr_rplan_pop(struct kr_rplan *rplan, struct kr_query *qry)
bool kr_rplan_satisfies(struct kr_query *closure, const knot_dname_t *name, uint16_t cls, uint16_t type)
{
if (!name)
return false;
while (closure != NULL) {
if (QUERY_PROVIDES(closure, name, cls, type)) {
return true;
......
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