[InterNetNews/inn] 7bf39c: Check the syntax of the domain parameter

Julien ÉLIE noreply at github.com
Sat Feb 18 20:55:12 UTC 2023


  Branch: refs/heads/main
  Home:   https://github.com/InterNetNews/inn
  Commit: 7bf39c5b8c3dc73f450811a2902b8cd2e695f24c
      https://github.com/InterNetNews/inn/commit/7bf39c5b8c3dc73f450811a2902b8cd2e695f24c
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-02-18 (Sat, 18 Feb 2023)

  Changed paths:
    M doc/pod/news.pod
    M include/inn/libinn.h
    M lib/innconf.c
    M lib/messageid.c
    M nnrpd/perm.c
    M tests/lib/messageid-t.c

  Log Message:
  -----------
  Check the syntax of the domain parameter

If domain (manually set, or the FQDN) has invalid characters in
inn.conf or readers.conf, just abort with a fatal error.  It is a basic
configuration error and we do not want to generate invalid Message-IDs.

Add a new IsValidDomain() function to validate the right-hand part of
a Message-ID.  Call it to validate the FQDN when domain is unset, and
the domain when set.

close #242




More information about the inn-committers mailing list