From: Daniel Salzman Date: Wed, 23 Mar 2022 07:42:46 +0000 (+0100) Subject: tests/tcp: mute Coverity X-Git-Tag: v3.3.dev~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e8d0856924bb0d9e67b42e02ef7dd984afe8ef;p=thirdparty%2Fknot-dns.git tests/tcp: mute Coverity --- diff --git a/tests/libknot/test_xdp_tcp.c b/tests/libknot/test_xdp_tcp.c index e4d9b875ac..03f098a417 100644 --- a/tests/libknot/test_xdp_tcp.c +++ b/tests/libknot/test_xdp_tcp.c @@ -371,6 +371,7 @@ void test_close(void) is_int(KNOT_EOK, ret, "close: send OK"); check_sent(0, 0, 0, 1); is_int(XDP_TCP_CLOSE, rl.action, "close: relay action"); + assert(rl.conn); ok(rl.conn == test_conn, "close: same connection"); is_int(XDP_TCP_CLOSING2, rl.conn->state, "close: conn state"); @@ -535,6 +536,7 @@ void test_obufs(void) size_t TEST_MSS = 1111; size_t DATA_LEN = 65535; // with 2-byte len prefix, this is > 64k == window_size uint8_t *data = calloc(DATA_LEN, 1); + assert(rl.conn); rl.conn->mss = TEST_MSS; rl.conn->window_size = 65536; send2_mss = TEST_MSS;