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),