[rtems-libbsd commit] Fix fp initializaiton in kern_sendit()
Sebastian Huber
sebh at rtems.org
Mon Apr 25 09:27:05 UTC 2016
Module: rtems-libbsd
Branch: master
Commit: 7d0050d921568a2dd37e2a5b325b19bc5d5a3932
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7d0050d921568a2dd37e2a5b325b19bc5d5a3932
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Apr 25 11:24:22 2016 +0200
Fix fp initializaiton in kern_sendit()
Bug introduced by 22257c7d81148e5b78027116e07627a54f4efb95.
---
freebsd/sys/kern/uipc_syscalls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/freebsd/sys/kern/uipc_syscalls.c b/freebsd/sys/kern/uipc_syscalls.c
index 73e1a64..c7a3dbe 100644
--- a/freebsd/sys/kern/uipc_syscalls.c
+++ b/freebsd/sys/kern/uipc_syscalls.c
@@ -1045,10 +1045,10 @@ kern_sendit(td, s, mp, flags, control, segflg)
rights = CAP_WRITE;
if (mp->msg_name != NULL)
rights |= CAP_CONNECT;
+#endif /* __rtems__ */
error = getsock_cap(td->td_proc->p_fd, s, rights, &fp, NULL);
if (error)
return (error);
-#endif /* __rtems__ */
so = (struct socket *)fp->f_data;
#ifdef KTRACE
More information about the vc
mailing list