]> git.decadent.org.uk Git - odhcp6c.git/commit
Fix memory leak in dhcpv6_add_server_cand in case odhcp6c_insert_state fails
authorBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 01:16:31 +0000 (01:16 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 13:31:29 +0000 (13:31 +0000)
commitb0d1c5805a6b76c3b198728cdfd93e351d5eb196
treeff9f4cc61368dd9b6671a94c83a0d9f7ba5a56ca
parent7b22e48fbf23d20d92a4bae581f39ac3704d8bb2
Fix memory leak in dhcpv6_add_server_cand in case odhcp6c_insert_state fails

If we fail to store information from the new server, the associated
NA and PD options will never be freed.  An attacker could use this
for denial-of-service.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
src/dhcpv6.c