diff options
Diffstat (limited to 'src/boot/modules/BootNet')
| -rw-r--r-- | src/boot/modules/BootNet/BootNet.cc | 6 |
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); |
