Guerrilla SMTPd is minimalist, event-driven I/O, non-blocking SMTP server. The design goal and purpose of Guerrilla SMTPd is to receive large volumes of email and nothing much else. It happily gobbles down millions of emails every week on a single processor system.
current proposed is_host_allowed() implementation returns 0 when the current sender's email address domain is first in GM_ALLOWED_HOSTS's comma separated values. This makes if(is_host_allowed()) tests in other places in this file to fail because 0 is interpreted as false. Adding is_numeric() before return in is_host_allowed() to force sending either true or false, but never 0 (or another integer).
current proposed is_host_allowed() implementation returns 0 when the current sender's email address domain is first in GM_ALLOWED_HOSTS's comma separated values. This makes if(is_host_allowed()) tests in other places in this file to fail because 0 is interpreted as false. Adding is_numeric() before return in is_host_allowed() to force sending either true or false, but never 0 (or another integer).