When localtime() fails, throw an error instead of returning a
authormartijn <martijn@openbsd.org>
Wed, 22 May 2024 08:44:02 +0000 (08:44 +0000)
committermartijn <martijn@openbsd.org>
Wed, 22 May 2024 08:44:02 +0000 (08:44 +0000)
commitf7af79d42719ad5fb6d136005c195d90f18edba3
tree9b60b34780f60fbf48b677559865fc194823509b
parent765bd20af0fb93e17d14cc35065af1c269d4f305
When localtime() fails, throw an error instead of returning a
non-sensical 0 filled string.

OK florian@
libexec/snmpd/snmpd_metrics/mib.c