diff --git a/src/knot/main.c b/src/knot/main.c
index 028bc8e41963224dcd06ed8ab1341a87115e068a..4a61984b64b114f24e7f2a2b6be314282d1ced6c 100644
--- a/src/knot/main.c
+++ b/src/knot/main.c
@@ -378,9 +378,7 @@ int main(int argc, char **argv)
 				log_server_info("Starting integrity check of "
 				                "zone: %s\n", zone);
 				knot_dname_t *zdn =
-					knot_dname_from_str(zone,
-					                        strlen(zone),
-					                        NULL);
+					knot_dname_from_str(zone, strlen(zone));
 				knot_zone_t *z =
 					knot_zonedb_find_zone(server->nameserver->zone_db,
 					                      zdn);