summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid VaĊĦek <david.vasek@nic.cz>2023-01-14 13:00:24 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2023-07-31 18:52:20 +0200
commit196ff7d78408c0ded1875f96ec201070596c1566 (patch)
tree69457e7535ed575d601174a58f23027c310aae7a
parenttests/libdnssec: fix vfprintf %s of a NULL pointer (diff)
downloadknot-196ff7d78408c0ded1875f96ec201070596c1566.tar.xz
knot-196ff7d78408c0ded1875f96ec201070596c1566.zip
tests-fuzz: use the same style for setting a buffer size
-rw-r--r--tests-fuzz/knotd_wrap/udp-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-fuzz/knotd_wrap/udp-handler.c b/tests-fuzz/knotd_wrap/udp-handler.c
index d5e034d0a..e70616d6c 100644
--- a/tests-fuzz/knotd_wrap/udp-handler.c
+++ b/tests-fuzz/knotd_wrap/udp-handler.c
@@ -65,7 +65,7 @@ static int udp_stdin_recv(_unused_ int fd, void *d)
{
udp_stdin_t *rq = (udp_stdin_t *)d;
rq->iov[RX].iov_len = fread(rq->iov[RX].iov_base, 1,
- KNOT_WIRE_MAX_PKTSIZE, stdin);
+ sizeof(rq->buf[RX]), stdin);
if (rq->iov[RX].iov_len == 0) {
next(rq);
}