check cache tree for collisions when inserting replies.
authortedu <tedu@openbsd.org>
Sat, 2 Jul 2016 17:09:09 +0000 (17:09 +0000)
committertedu <tedu@openbsd.org>
Sat, 2 Jul 2016 17:09:09 +0000 (17:09 +0000)
commitf6095d73eee33225fc0cbb4f30b159e4fbeb1f63
tree3f052f9bd535064398611a63657389ebe108073f
parent20e972fc97f2c4f01e6e0a03315aebccb77d313c
check cache tree for collisions when inserting replies.
if two identical requests are sent out, the first will create a cache
entry. the second will not go into the cache tree, but will linger around,
causing a crash when we free it and try to remove from the tree. instead,
give up if insert fails.
diagnosis and initial patch from Duncan.
usr.sbin/rebound/rebound.c