mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
linux: Fix setsockopt fallback
The final 2 arguments for SO_TIMESTAMP/SO_TIMESTAMPNS are being set wrongly. Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
@@ -78,7 +78,9 @@ setsockopt32 (int fd, int level, int optname, const void *optval,
|
||||
optname = COMPAT_SO_TIMESTAMP_OLD;
|
||||
if (optname == COMPAT_SO_TIMESTAMPNS_NEW)
|
||||
optname = COMPAT_SO_TIMESTAMPNS_OLD;
|
||||
r = setsockopt_syscall (fd, level, optname, NULL, 0);
|
||||
/* The expected type for the option is an 'int' for both types of
|
||||
timestamp formats, so there is no need to convert it. */
|
||||
r = setsockopt_syscall (fd, level, optname, optval, len);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user