mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-30 02:20:39 +00:00
streamlined bad close code behavior
This commit is contained in:
@@ -297,11 +297,7 @@ uint16_t frame::get_close_status() const {
|
||||
reinterpret_cast<uint16_t*>(&val[0])
|
||||
));
|
||||
|
||||
if (close::status::invalid(code)) {
|
||||
return close::status::PROTOCOL_ERROR;
|
||||
} else {
|
||||
return code;
|
||||
}
|
||||
return code;
|
||||
} else {
|
||||
return close::status::PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user