summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-03-23 20:28:29 +0000
committerclaudio <claudio@openbsd.org>2005-03-23 20:28:29 +0000
commitc8ae2450cfb03aa11e0cbe0bba006fe7c336712e (patch)
tree946ab1c84a3e0dc969cbf22ae49c0f16002682cc /lib/libc
parentmove the filename string table code in a separate file so we can use it (diff)
downloadwireguard-openbsd-c8ae2450cfb03aa11e0cbe0bba006fe7c336712e.tar.xz
wireguard-openbsd-c8ae2450cfb03aa11e0cbe0bba006fe7c336712e.zip
The interface name in struct sockaddr_dl may not be nul terminated and
so the strlcpy() will copy to much. Use sa_nlen instead with some additional logic. This fixes a problem where interfaces where not found. OK norby@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions