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:
parent
a82cfd2461
commit
c0b54e868f
@ -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) {
|
for (map<string,bool>::const_iterator reserved = reserved_io_names.begin(); reserved != reserved_io_names.end(); ++reserved) {
|
||||||
if (name == reserved->first) {
|
if (name == reserved->first) {
|
||||||
if (!route_by_name (reserved->first)) {
|
if (!route_by_name (reserved->first)) {
|
||||||
/* first instance of a reserved name is allowed */
|
/* first instance of a reserved name is allowed for some */
|
||||||
return true;
|
return reserved->second;
|
||||||
}
|
}
|
||||||
/* all other instances of a reserved name are not allowed */
|
/* all other instances of a reserved name are not allowed */
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user