diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-11-18 17:27:23 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-11-18 17:27:23 +0100 |
commit | 049e72ddaa0cd24fce2d7550e604fc47ec7f9b3b (patch) | |
tree | a9ad621349a19387013b4aae143c9872d3bd46ae /lib/udp.c | |
parent | 1f84470aaf49264084d39078adb4afd26d0b4d71 (diff) |
Avoid leaking memory when receiving a bad response.
A badly authenticated response message or one that didn't decode or
decrypt correctly was never freed. If caller didn't pass pkt_out, any
response was leaked as well.
As a bonus, the code is now readable too.
Diffstat (limited to 'lib/udp.c')
0 files changed, 0 insertions, 0 deletions