Commit f87ca374 authored by Jan Včelák's avatar Jan Včelák 🚀

rrl: fix hashing of seed value

parent f355a274
......@@ -203,9 +203,8 @@ static int rrl_classify(char *dst, size_t maxlen, const struct sockaddr_storage
if (blklen + sizeof(seed) > maxlen) {
return KNOT_ESPACE;
}
if (memcpy(dst + blklen, (void*)&seed, sizeof(seed)) == 0) {
blklen += sizeof(seed);
}
memcpy(dst + blklen, (void *)&seed, sizeof(seed));
blklen += sizeof(seed);
return blklen;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment