blob: ad8e3a4d58aa9eab298ca60916912cd6e9e70a05 (
plain) (
blame)
1
2
3
4
|
linux-user emulation of setsockopt ignores optlen
setsockopt always treats the argument as a 4-byte int. This breaks timeout options (for which it's an 8- or 16-byte timeval structure, depending on word size) and possibly other socket options. int is probably a safe default, but options whose values are other types need special-case conversion code.
|