Skip to content
Snippets Groups Projects
Commit 3f0b30ed authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Remove duplicate condition

Coverity scan #743231 (same on both sides)
parent 162e19a9
No related branches found
No related tags found
No related merge requests found
......@@ -860,7 +860,7 @@ int knot_rdata_ds_check(const knot_rdata_t *rdata)
uint16_t len = knot_rdata_ds_digest_len(rdata);
uint8_t type = knot_rdata_ds_digest_type(rdata);
if (type == 0 || type == 0) {
if (type == 0) {
return KNOT_EINVAL;
} else if (len != knot_ds_digest_length(type)) {
return KNOT_EDSDIGESTLEN;
......
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