Skip to content
Snippets Groups Projects
Commit b867ff20 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

Merge branch 'compr_fix' of /git/repositories/knot

parents e2a13fd2 8873a51b
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ int knot_response_compress_dname(const knot_dname_t *dname, knot_compr_t *compr,
/* If table is full, elect name from the lower 1/4 of the table
* and replace it. */
if (i == COMPR_MAXLEN - 1) {
if (i == COMPR_MAXLEN) {
i = COMPR_FIXEDLEN + rand() % COMPR_VOLATILE;
compr->table[i].off = 0;
}
......
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