Skip to content
Snippets Groups Projects
Commit 47758322 authored by DONG Anyuan's avatar DONG Anyuan
Browse files

Fix Coverity Scan CID 60394 (Using uninitialized value addr6. Field...

Fix Coverity Scan CID 60394 (Using uninitialized value addr6. Field addr6.sin6_flowinfo is uninitialized when calling bind.)
parent 8084d6d2
No related branches found
No related tags found
No related merge requests found
......@@ -580,6 +580,7 @@ sctp_handle_new_association_req(
addr6.sin6_family = AF_INET6;
addr6.sin6_addr = in6addr_any;
addr6.sin6_port = htons(sctp_new_association_req_p->port);
addr6.sin6_flowinfo = 0;
if (bind(sd, (struct sockaddr*)&addr6, sizeof(addr6)) < 0) {
SCTP_ERROR("Failed to bind the socket to address any (v4/v6): %s\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment