HomeFreeBSD

inetd: fix unix sockaddr's length assignment

Description

inetd: fix unix sockaddr's length assignment

unsz was always exactly '1' here due to an unfortunate mispositioning
of closing parenthesis. While it's generally irrelevant because bind(2)
is passed the (accurate) sep->se_ctrladdr_size instead, it's not very
helpful for anything locally that wants to use it rather than assuming
that sep->se_ctrladdr_size perfectly fits the end of sun_path.

Just drop unsz entirely and use the result of SUN_LEN() for it.

MFC-after: 3 days

Details

Provenance
kevansAuthored on Feb 12 2021, 7:19 PM
Parents
rGf540cb27a237: mount_nullfs: rename a local variable
Branches
Unknown
Tags
Unknown