Skip to content
Snippets Groups Projects
Commit c3b8f24f authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fix in dname_deep_copy().

- Checking if the given dname is not NULL.
parent 07f40449
No related branches found
No related tags found
No related merge requests found
......@@ -598,6 +598,10 @@ knot_dname_t *knot_dname_deep_copy(const knot_dname_t *dname)
/* dname_new_from_wire() does not accept non-FQDN dnames, so we
* do the copy by hand. It's faster anyway */
if (dname == NULL) {
return NULL;
}
knot_dname_t *copy = knot_dname_new();
CHECK_ALLOC(copy, NULL);
......
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