{
struct smtp_server_connection *conn = cmd->conn;
- if (conn->helo.domain == NULL ||
- strcmp(conn->helo.domain, data->helo.domain) != 0 ||
+ if (null_strcmp(conn->helo.domain, data->helo.domain) != 0 ||
conn->helo.old_smtp != data->helo.old_smtp)
data->changed = TRUE; /* Definitive assessment */
}
helo_data->first = first;
command->data = helo_data;
- if (conn->helo.domain == NULL ||
- (domain != NULL && strcmp(conn->helo.domain, domain) != 0) ||
+ if (null_strcmp(conn->helo.domain, domain) != 0 ||
conn->helo.old_smtp != old_smtp)
helo_data->changed = TRUE; /* Preliminary assessment */