mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
uipc_syscalls: removed unnecessary check in accept1() function
Signed-off-by: Dmitriy Alexandrov <d06alexandrov@gmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/773
This commit is contained in:
parent
a8c1c0b727
commit
6016aedba1
|
@ -298,7 +298,6 @@ accept1(struct thread *td, int s, struct sockaddr *uname, socklen_t *anamelen,
|
|||
if (error != 0)
|
||||
return (error);
|
||||
|
||||
if (error == 0 && uname != NULL) {
|
||||
#ifdef COMPAT_OLDSOCK
|
||||
if (SV_PROC_FLAG(td->td_proc, SV_AOUT) &&
|
||||
(flags & ACCEPT4_COMPAT) != 0)
|
||||
|
@ -306,7 +305,6 @@ accept1(struct thread *td, int s, struct sockaddr *uname, socklen_t *anamelen,
|
|||
name->sa_family;
|
||||
#endif
|
||||
error = copyout(name, uname, namelen);
|
||||
}
|
||||
if (error == 0)
|
||||
error = copyout(&namelen, anamelen,
|
||||
sizeof(namelen));
|
||||
|
|
Loading…
Reference in a new issue