accept_connection(): Fix crashes with "listen-addr :8118"