From: yangfeng <yangfeng59949@163.com>
To: ltp@lists.linux.it
Cc: yangfeng <yangfeng@kylinos.cn>
Subject: [LTP] [PATCH] sctp: bugfix for utils/sctp/func_tests/test_1_to_1_events.c
Date: Fri, 29 Mar 2024 23:47:15 +0800 [thread overview]
Message-ID: <20240329154715.7130-1-yangfeng59949@163.com> (raw)
From: yangfeng <yangfeng@kylinos.cn>
event not initialized to 0 causes "Got a notification,
expecting a datamsg" issues
Signed-off-by: yangfeng <yangfeng@kylinos.cn>
---
utils/sctp/func_tests/test_1_to_1_events.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/utils/sctp/func_tests/test_1_to_1_events.c b/utils/sctp/func_tests/test_1_to_1_events.c
index 447845ff3..889d2ff33 100644
--- a/utils/sctp/func_tests/test_1_to_1_events.c
+++ b/utils/sctp/func_tests/test_1_to_1_events.c
@@ -96,6 +96,7 @@ main(void)
/* Create the client socket. */
clt_sk = test_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
+ memset(&event, 0, sizeof(struct sctp_event_subscribe));
event.sctp_data_io_event = 1;
event.sctp_association_event = 1;
event.sctp_shutdown_event = 1;
--
2.25.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2024-04-02 9:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 15:47 yangfeng [this message]
2024-04-04 13:53 ` [LTP] [PATCH] sctp: bugfix for utils/sctp/func_tests/test_1_to_1_events.c Petr Vorel
2024-04-05 6:53 ` yangfeng59949
2024-04-05 7:34 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240329154715.7130-1-yangfeng59949@163.com \
--to=yangfeng59949@163.com \
--cc=ltp@lists.linux.it \
--cc=yangfeng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).