iface->auth_key is not a real C string so use strnlen() to define the maximum.
authorclaudio <claudio@openbsd.org>
Tue, 7 Nov 2023 11:29:05 +0000 (11:29 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 7 Nov 2023 11:29:05 +0000 (11:29 +0000)
commit4cf3f6fda4106306baf1f5c503e8869d28187047
tree9206945b192535352c7fb6f7829a197f1023438c
parentd1ee0d19b86fbaea77bc10a74a689a561921ccf9
iface->auth_key is not a real C string so use strnlen() to define the maximum.

This fixes the use of 8 char passwords with auth simple.
Reported by Laurent CARON (lcaron at unix-scripts info)
OK tb@
usr.sbin/ospfd/auth.c