13
0

more correct semantics for reserved IO name checking

This commit is contained in:
Paul Davis 2015-11-09 08:24:35 -05:00
parent 647a60d35d
commit 3c4e9cb64e

View File

@ -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;
}
}