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 ...@@ -203,9 +203,8 @@ static int rrl_classify(char *dst, size_t maxlen, const struct sockaddr_storage
if (blklen + sizeof(seed) > maxlen) { if (blklen + sizeof(seed) > maxlen) {
return KNOT_ESPACE; return KNOT_ESPACE;
} }
if (memcpy(dst + blklen, (void*)&seed, sizeof(seed)) == 0) { memcpy(dst + blklen, (void *)&seed, sizeof(seed));
blklen += sizeof(seed); blklen += sizeof(seed);
}
return blklen; 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