dde_ipxe: catch exception instead of dying silently

Fix #593
This commit is contained in:
Alexander Boettcher 2013-04-16 10:43:58 +02:00 committed by Norman Feske
parent 958cdffa7b
commit f6d31d7243
1 changed files with 7 additions and 3 deletions

View File

@ -65,9 +65,13 @@ namespace Ipxe {
void rx_handler(const char *packet, unsigned packet_len)
{
void *buffer = _alloc.alloc(packet_len);
Genode::memcpy(buffer, packet, packet_len);
_alloc.submit();
try {
void *buffer = _alloc.alloc(packet_len);
Genode::memcpy(buffer, packet, packet_len);
_alloc.submit();
} catch (...) {
PDBG("failed to process received packet");
}
}