HomeFreeBSD

MFC r311381:

Description

MFC r311381:

lsock_init_port: address issues with initializing sockaddr_un object

  • Use strlcpy to ensure p->name doesn't overflow sa.sun_path [*].
  • Use SUN_LEN(..) instead of spelling out calculation longhand (inspired by comment by jmallett).

Tested with: dgram and stream support with both bsnmpwalk and snmpwalk

CID: 1006825

Details

Provenance
ngieAuthored on
Parents
rS312058: MFC r310586,r310587,r310588,r311381:
Branches
Unknown
Tags
Unknown