summaryrefslogtreecommitdiffhomepage
path: root/src/boot/modules
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-04 10:44:00 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-04 10:44:00 +0100
commit87aa249b33a68013b3a787c8d5c0ce880f8c4d84 (patch)
tree4d24891dbc4fa401d008aaf6c2b8a4b235b2c4cf /src/boot/modules
parent30ba1aab88bd8138a6b3b3e1dbb464e4e67af698 (diff)
chore: kernel: Source code fixes and stabilization.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot/modules')
-rw-r--r--src/boot/modules/BootNet/BootNet.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/boot/modules/BootNet/BootNet.cc b/src/boot/modules/BootNet/BootNet.cc
index 8b0112c5..ced25d74 100644
--- a/src/boot/modules/BootNet/BootNet.cc
+++ b/src/boot/modules/BootNet/BootNet.cc
@@ -84,9 +84,11 @@ STATIC Void bootnet_read_ip_packet(BOOTNET_INTERNET_HEADER inet,
/// Connect to the local BootNet server.
+ auto len = inet.Length;
+
/// And receive the handshake packet.
- if (kEfiProtocol->Receive(kEfiProtocol, &size_inet, (UInt32*) &inet.Length, (VoidPtr) &inet,
- nullptr, nullptr, nullptr) == kEfiOk) {
+ if (kEfiProtocol->Receive(kEfiProtocol, &size_inet, (UInt32*)&len, (VoidPtr) &inet, nullptr, nullptr,
+ nullptr) == kEfiOk) {
BOOTNET_INTERNET_HEADER* out = nullptr;
BS->AllocatePool(EfiLoaderData, sizeof(BOOTNET_INTERNET_HEADER) + inet.Length, (VoidPtr*) &out);