[rtems-libbsd commit] Fix file descriptor reference counting in accept()
Sebastian Huber
sebh at rtems.org
Wed Nov 15 12:25:51 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: b03a1c0b5913ff5eee9f3113b20396c189b27123
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b03a1c0b5913ff5eee9f3113b20396c189b27123
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Nov 15 13:24:29 2017 +0100
Fix file descriptor reference counting in accept()
Update #3132.
---
freebsd/sys/kern/uipc_syscalls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/freebsd/sys/kern/uipc_syscalls.c b/freebsd/sys/kern/uipc_syscalls.c
index 62101b5..7970255 100644
--- a/freebsd/sys/kern/uipc_syscalls.c
+++ b/freebsd/sys/kern/uipc_syscalls.c
@@ -432,7 +432,9 @@ accept1(td, s, uname, anamelen, flags)
sizeof(namelen));
if (error != 0)
fdclose(td, fp, td->td_retval[0]);
+#ifndef __rtems__
fdrop(fp, td);
+#endif /* __rtems__ */
free(name, M_SONAME);
return (error);
}
More information about the vc
mailing list