Skip to content

Commit

Permalink
Merge pull request #16 from mon/fix-scope
Browse files Browse the repository at this point in the history
Fix crash in release mode for mdns example
  • Loading branch information
bltavares authored Dec 17, 2023
2 parents 787107b + 5eca9a8 commit 7db7ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ impl MulticastSocket {
len: buf.len() as _,
};

let mut control_buffer = [0; CONTROL_PKTINFO_BUFFER_SIZE];
let control = if let Some(pkt_info) = pkt_info {
let mut control_buffer = [0; CONTROL_PKTINFO_BUFFER_SIZE];
let hdr = CMSGHDR {
cmsg_len: CONTROL_PKTINFO_BUFFER_SIZE,
cmsg_level: IPPROTO_IP,
Expand Down

0 comments on commit 7db7ac8

Please # to comment.