diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-29 23:53:51 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-29 23:53:51 +0200 |
| commit | 81613cd5f125bb196753c497c5440daa69775c8d (patch) | |
| tree | cffef665bf9278e5868327d8f5cc115dcf2546bd /Kernel | |
| parent | 397b03fd02a851abc70e750daf340966914e4239 (diff) | |
New err_ kernel API (with err_bug_check) (FIXES)
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
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; + } } |
