13
0

Fix another possible case of illegal use of reserved port-names

Session::io_name_is_legal() is used for Routes and Processors:
Route::set_name(), ProcessorBox::rename_processor() and
and Route::ensure_track_or_route_name() -- it is not used for actual
I/O objects.
This commit is contained in:
Robin Gareus 2017-05-10 20:28:47 +02:00
parent a82cfd2461
commit c0b54e868f

View File

@ -4277,8 +4277,8 @@ Session::io_name_is_legal (const std::string& name) const
for (map<string,bool>::const_iterator reserved = reserved_io_names.begin(); reserved != reserved_io_names.end(); ++reserved) {
if (name == reserved->first) {
if (!route_by_name (reserved->first)) {
/* first instance of a reserved name is allowed */
return true;
/* first instance of a reserved name is allowed for some */
return reserved->second;
}
/* all other instances of a reserved name are not allowed */
return false;