mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Only use sockoptname() to parse socket option names for SOL_SOCKET
requests. MFC after: 3 days Reported by: Michiel Boland michiel boland.org
This commit is contained in:
parent
7a52326a0d
commit
0460d3516d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175138
@ -532,10 +532,12 @@ ktrsyscall(struct ktr_syscall *ktr)
|
||||
print_number(ip,narg,c);
|
||||
(void)putchar(',');
|
||||
sockoptlevelname((int)*ip, decimal);
|
||||
ip++;
|
||||
narg--;
|
||||
(void)putchar(',');
|
||||
sockoptname((int)*ip);
|
||||
if ((int)*ip == SOL_SOCKET) {
|
||||
ip++;
|
||||
narg--;
|
||||
(void)putchar(',');
|
||||
sockoptname((int)*ip);
|
||||
}
|
||||
ip++;
|
||||
narg--;
|
||||
#ifdef SYS_freebsd6_lseek
|
||||
|
Loading…
Reference in New Issue
Block a user