more correct semantics for reserved IO name checking
This commit is contained in:
parent
647a60d35d
commit
3c4e9cb64e
@ -3758,9 +3758,12 @@ Session::io_name_is_legal (const std::string& name)
|
||||
|
||||
for (vector<string>::const_iterator reserved = reserved_io_names.begin(); reserved != reserved_io_names.end(); ++reserved) {
|
||||
if (name == *reserved) {
|
||||
if (route_by_name (*reserved)) {
|
||||
return false;
|
||||
if (!route_by_name (*reserved)) {
|
||||
/* first instance of a reserved name is allowed */
|
||||
return true;
|
||||
}
|
||||
/* all other instances of a reserved name are not allowed */
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user