summaryrefslogtreecommitdiffhomepage
path: root/Kernel
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-06-29 23:53:51 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-06-29 23:53:51 +0200
commit81613cd5f125bb196753c497c5440daa69775c8d (patch)
treecffef665bf9278e5868327d8f5cc115dcf2546bd /Kernel
parent397b03fd02a851abc70e750daf340966914e4239 (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.cxx21
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;
+ }
}