]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ipv6] Avoid potentially copying from a NULL pointer in ipv6_tx()
authorMichael Brown <mcb30@ipxe.org>
Fri, 23 May 2014 12:47:19 +0000 (13:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 23 May 2014 13:11:17 +0000 (14:11 +0100)
commit7627f6c071f4e67b855b02189ca1e3523a1c3bd5
tree110593ba88205b542ac7168007a6ccacc4b6d861
parent3a1adea0360e73c91ebed63b671303601a63b450
[ipv6] Avoid potentially copying from a NULL pointer in ipv6_tx()

If ipv6_tx() is called with a non-NULL network device, a NULL or
unspecified source address, and a destination address which does not
match any routing table entry, then it will attempt to copy the source
address from a NULL pointer.

I don't think that there is currently any code path which could
trigger this behaviour, but we should probably ensure that it can
never happen.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/ipv6.c