Skip to content

Commit

Permalink
dde_ipxe: fix null pointer de-referencing
Browse files Browse the repository at this point in the history
Issue #593
  • Loading branch information
alex-ab authored and nfeske committed Apr 26, 2013
1 parent 30927f6 commit 958cdff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dde_ipxe/src/lib/dde_ipxe/nic.c
Expand Up @@ -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;

Expand Down

0 comments on commit 958cdff

Please sign in to comment.