]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[retry] Fix potential use-after-free in timer_expired()
authorMichael Brown <mcb30@ipxe.org>
Sat, 16 Jul 2011 00:46:12 +0000 (01:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 16 Jul 2011 00:49:47 +0000 (01:49 +0100)
commit17f09dfe03a8c6b46d30844d3cee28266b6971fe
tree519f0c558d7e5dc4a2387fcc16ab3d7c6405b7d1
parent5b41381f3386ac70de30edbdcd291cda112d9f64
[retry] Fix potential use-after-free in timer_expired()

timer->refcnt is allowed to be NULL, in which case the timer's
expired() method may end up freeing the timer object.

Discovered using valgrind.

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