some fatal -> fatalx to improved logging
authorop <op@openbsd.org>
Tue, 16 May 2023 17:48:52 +0000 (17:48 +0000)
committerop <op@openbsd.org>
Tue, 16 May 2023 17:48:52 +0000 (17:48 +0000)
commit62e04d0530a36391d8e0932872ea7ee5c0281ba0
tree9c8a0b219fb0061136120571e6ceffbf945b9909
parentf209885a32143b5da8d222590d60089e9ead2a14
some fatal -> fatalx to improved logging

errno doesn't generally contains anything useful after libtls functions,
and in most cases it's explicitly cleared to avoid misuse, so change a
few fatal() calls to fatalx() when logging libtls failures.  Also, add
the real error string, via tls_error() or tls_config_error(), that was
missing before.

ok millert@
usr.sbin/smtpd/mta.c
usr.sbin/smtpd/smtp.c
usr.sbin/smtpd/smtpc.c