Skip to content

Initialize sin6_scope_id to zero

Saar Gross requested to merge saar/libslirp:sin6_scope_fix into master

sin6_scope_id is not explicitly set to zero in tcp_input() which should be OK for global IPv6 addresses, but seems to fail on Mac OS: if sin6_scope_id ends up with a value other than zero for global addresses, connect() will fail with "No route to host". Tested on Mac OS v11.5.2 but might be an issue on other versions as well.

Signed-off-by: Saar Gross saar@fb.com Signed-off-by: Mohan Kumar Kumar mohankm@fb.com

Merge request reports

Loading