diff options
author | 2005-03-23 20:28:29 +0000 | |
---|---|---|
committer | 2005-03-23 20:28:29 +0000 | |
commit | c8ae2450cfb03aa11e0cbe0bba006fe7c336712e (patch) | |
tree | 946ab1c84a3e0dc969cbf22ae49c0f16002682cc /lib/libc | |
parent | move the filename string table code in a separate file so we can use it (diff) | |
download | wireguard-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