Page MenuHomeFreeBSD

D34727.id104420.diff
No OneTemporary

D34727.id104420.diff

Index: sys/compat/linux/linux_socket.c
===================================================================
--- sys/compat/linux/linux_socket.c
+++ 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
Tue, Aug 18, 12:15 PM (7 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36892349
Default Alt Text
D34727.id104420.diff (522 B)

Event Timeline