In sendit(), if mp->msg_control is present, then in sockargs() we are allocating mbuf to store mp->msg_control. Later in kern_sendit(), call to getsock_cap(), will check validity of file pointer passed, if this fails EBADF is returned but mbuf allocated in sockargs() is not freed. Made code changes to free the same.
Details
Details
- Reviewers
hiren adrian - Group Reviewers
network - Commits
- rS306337: In sendit(), if mp->msg_control is present, then in sockargs() we are allocating
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 5178 Build 5300: arc lint + arc unit
Event Timeline
Comment Actions
Thanks Lohith for the patch.
I'll wait for a few more days for any other comments before committing on your behalf.