[LTP] [PATCH]network/netstress: bugfix for netstress/netstress.c

Li Min limin154@huawei.com
Thu Aug 24 18:00:08 CEST 2023


eshutdown_cnt needs to be initialized.

Signed-off-by: Min Li <limin154@huawei.com>
---
 testcases/network/netstress/netstress.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
index 6a888f2ee..fb6281cd0 100644
--- a/testcases/network/netstress/netstress.c
+++ b/testcases/network/netstress/netstress.c
@@ -384,6 +384,7 @@ void *client_fn(void *id)

 	inf.raddr_len = sizeof(inf.raddr);
 	inf.etime_cnt = 0;
+	inf.eshutdown_cnt = 0;
 	inf.timeout = wait_timeout;
 	inf.pmtu_err_cnt = 0;

--
2.33.0



More information about the ltp mailing list