Initialize sctp_paddrparams in OpenSctpSocket().
Addresses 'use-of-uninitialized-value' detected with MemorySanitizer. params.spp_address.sa_family was used without being initialized before when calling usrsctp_setsockopt with SCTP_PEER_ADDR_PARAMS. R=jiayl@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/23909004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7389 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
27e5898f45
commit
d6bda09503
@ -379,7 +379,7 @@ bool SctpDataMediaChannel::OpenSctpSocket() {
|
||||
}
|
||||
|
||||
// Disable MTU discovery
|
||||
struct sctp_paddrparams params;
|
||||
struct sctp_paddrparams params = {0};
|
||||
params.spp_assoc_id = 0;
|
||||
params.spp_flags = SPP_PMTUD_DISABLE;
|
||||
params.spp_pathmtu = kSctpMtu;
|
||||
|
Loading…
Reference in New Issue
Block a user