NLnetLabs / simdzone

Fast and standards compliant DNS zone parser
BSD 3-Clause "New" or "Revised" License
63 stars 11 forks source link

Always log error if file cannot be opened #185

Closed k0ekk0ek closed 4 months ago

k0ekk0ek commented 4 months ago

Previously only $INCLUDE files that could not be opened resulted in an error message. Now an error is logged if the initial file passed to zone_parse cannot be opened as well. Consequently, the current filename may be NULL in the log handler. To avoid confusion and to emphasize the current filename is only correct during execution of the log handler, I've added both the filename and line number to the zone_log_t typedef.