Page MenuHomeFreeBSD

D34727.id104892.diff
No OneTemporary

D34727.id104892.diff

diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1046,11 +1046,9 @@
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;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 17, 3:43 AM (1 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27679623
Default Alt Text
D34727.id104892.diff (499 B)

Event Timeline