Avoid leaking memory when receiving a bad response.
authorLinus Nordberg <linus@nordberg.se>
Mon, 18 Nov 2013 16:27:23 +0000 (17:27 +0100)
committerLinus Nordberg <linus@nordberg.se>
Mon, 18 Nov 2013 16:27:23 +0000 (17:27 +0100)
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.


No differences found