aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c
index d56224b..0736ba7 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -129,6 +129,7 @@ static int osmo_stream_cli_write(struct osmo_stream_cli *cli)
switch (cli->proto) {
#ifdef HAVE_LIBSCTP
case IPPROTO_SCTP:
+ memset(&sinfo, 0, sizeof(sinfo));
sinfo.sinfo_ppid = htonl(msgb_sctp_ppid(msg));
sinfo.sinfo_stream = htonl(msgb_sctp_stream(msg));
ret = sctp_send(cli->ofd.fd, msg->data, msgb_length(msg),
@@ -535,6 +536,7 @@ static void osmo_stream_srv_write(struct osmo_stream_srv *conn)
switch (conn->srv->proto) {
#ifdef HAVE_LIBSCTP
case IPPROTO_SCTP:
+ memset(&sinfo, 0, sizeof(sinfo));
sinfo.sinfo_ppid = htonl(msgb_sctp_ppid(msg));
sinfo.sinfo_stream = htonl(msgb_sctp_stream(msg));
ret = sctp_send(conn->ofd.fd, msg->data, msgb_length(msg),