mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
linux(4): Copyout actual size of addr to the user space in accept().
Differential Revision: https://reviews.freebsd.org/D34727
This commit is contained in:
parent
bb0f644cd6
commit
673bce11ce
1 changed files with 3 additions and 5 deletions
|
|
@ -1046,11 +1046,9 @@ linux_accept_common(struct thread *td, int s, l_uintptr_t addr,
|
|||
|
||||
if (len != 0) {
|
||||
error = linux_copyout_sockaddr(sa, PTRIN(addr), len);
|
||||
|
||||
/*
|
||||
* XXX: We should also copyout the len, shouldn't we?
|
||||
*/
|
||||
|
||||
if (error == 0)
|
||||
error = copyout(&len, PTRIN(namelen),
|
||||
sizeof(len));
|
||||
if (error != 0) {
|
||||
fdclose(td, fp, td->td_retval[0]);
|
||||
td->td_retval[0] = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue