]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311381:
authorngie <ngie@FreeBSD.org>
Fri, 13 Jan 2017 09:19:09 +0000 (09:19 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 13 Jan 2017 09:19:09 +0000 (09:19 +0000)
commit2a97f9b8173c2efc69ce95ce68602dbe19c782b9
tree287d51754105aa812a4db1b35f1e91ab682804a0
parent9157d26f8d68bde336c5e7d215a8f841aa5b6863
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
contrib/bsnmp/snmpd/trans_lsock.c