diff options
Diffstat (limited to 'Kernel')
| -rw-r--r-- | Kernel/Sources/Network/IPCEP.cxx | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Kernel/Sources/Network/IPCEP.cxx b/Kernel/Sources/Network/IPCEP.cxx index 9e198385..930969fb 100644 --- a/Kernel/Sources/Network/IPCEP.cxx +++ b/Kernel/Sources/Network/IPCEP.cxx @@ -56,16 +56,19 @@ _Fail: return false; } -/// @brief Sanitize packet function -/// @retval true packet is correct. -/// @retval false packet is incorrect and process has crashed. -Bool ipc_sanitize_packet(IPCEPMessageHeader* pckt) +namespace NewOS { - if (!__ipc_sanitize_packet(pckt)) + /// @brief Sanitize packet function + /// @retval true packet is correct. + /// @retval false packet is incorrect and process has crashed. + Bool ipc_sanitize_packet(IPCEPMessageHeader* pckt) { - ProcessScheduler::The().Leak().TheCurrent().Leak().Crash(); - return false; - } + if (!__ipc_sanitize_packet(pckt)) + { + ProcessScheduler::The().Leak().TheCurrent().Leak().Crash(); + return false; + } - return true; + return true; + } } |
