Page MenuHomeFreeBSD

Fix handling of empty SCM_RIGHTS messages.
Needs ReviewPublic

Authored by markj on Tue, Oct 8, 10:30 PM.
This revision needs review, but there are no reviewers specified.



As uipc_internalize() processes input control messages, it forms an
output mbuf chain, placed in *controlp.

The switch statement which handles different message types always
appends a new mbuf to the output chain, with one exception: an empty
SCM_RIGHTS message. The code at the end of the loop did not handle this
exception: it always advances controlp along the mbuf chain. Fix this,
and add a regression test.

Diff Detail

Lint OK
No Unit Test Coverage
Build Status
Buildable 26940
Build 25243: arc lint + arc unit

Event Timeline

markj created this revision.Tue, Oct 8, 10:30 PM