Ignore invalid function codes sent to other servers

This commit is contained in:
Carl Friess 2024-12-13 16:50:10 +01:00
parent a1705c0dff
commit c81ad17305

View File

@ -1878,7 +1878,8 @@ static nmbs_error handle_req_fc(nmbs_t* nmbs) {
#endif
default:
flush(nmbs);
err = send_exception_msg(nmbs, NMBS_EXCEPTION_ILLEGAL_FUNCTION);
if (!nmbs->msg.ignored && !nmbs->msg.broadcast)
err = send_exception_msg(nmbs, NMBS_EXCEPTION_ILLEGAL_FUNCTION);
}
return err;