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

Small bugfix

parent 79a54de6
No related branches found
No related tags found
No related merge requests found
......@@ -2081,10 +2081,12 @@ int dnslib_zone_contents_shallow_copy(const dnslib_zone_contents_t *from,
}
#ifdef USE_HASH_TABLE
ret = ck_copy_table(from->table, &contents->table);
if (ret != 0) {
ret = DNSLIB_ERROR;
goto cleanup;
if (from->table != NULL) {
ret = ck_copy_table(from->table, &contents->table);
if (ret != 0) {
ret = DNSLIB_ERROR;
goto cleanup;
}
}
#endif
......
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