dde_ipxe: fix null pointer de-referencing

Issue #593
This commit is contained in:
Alexander Boettcher 2013-04-12 12:30:17 +02:00 committed by Norman Feske
parent 30927f68a7
commit 958cdffa7b
1 changed files with 4 additions and 0 deletions

View File

@ -260,6 +260,10 @@ int dde_ipxe_nic_tx(unsigned if_index, const char *packet, unsigned packet_len)
struct io_buffer *iobuf = alloc_iob(packet_len);
LEAVE;
if (!iobuf)
return -1;
memcpy(iob_put(iobuf, packet_len), packet, packet_len);
ENTER;