Fixed issue with crash when invalid get_connections request is made on invalid port handle. (Grygorii)
This commit is contained in:
parent
32224ee608
commit
3c3d62c18a
@ -165,7 +165,12 @@ Port::get_connections (std::vector<std::string> & c) const
|
||||
return c.size();
|
||||
}
|
||||
|
||||
if (_port_handle) {
|
||||
return port_engine.get_connections (_port_handle, c);
|
||||
return c.size();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user