]> the.earth.li Git - onak.git/commit
Throw away invalid packet data when parsing packets
authorJonathan McDowell <noodles@earth.li>
Mon, 22 Aug 2016 16:35:02 +0000 (17:35 +0100)
committerJonathan McDowell <noodles@earth.li>
Mon, 22 Aug 2016 16:35:02 +0000 (17:35 +0100)
commit5d859953e393a2539e67df3ce73798e7029cf5b9
tree1bd39eb75bdb1021e82f4f781162cee978cfd4a5
parent72879375e37b8bbbd89fc641ddc102de804b3e1b
Throw away invalid packet data when parsing packets

We would detect that a packet wasn't correctly formed, and handle
requests to try to allocation too much memory that failed, when parsing
keys. However the old partial packet structure was still left around. If
we hit an error when parsing an incoming packet make sure it's fully
cleaned up.
parsekey.c