Clean up the code a bit
authorJennifer Richards <jennifer@painless-security.com>
Mon, 12 Jun 2017 17:00:18 +0000 (13:00 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Mon, 12 Jun 2017 17:00:18 +0000 (13:00 -0400)
commit74fea865b53066aa4af981490e8ed600bd927eab
tree7104ba95c2425977917c79003ab12a3a9091c9e1
parentf98d872ef431521d9b39b1a362c4697be7f31c04
Clean up the code a bit

 * Avoid looking inside TR_NAME to encode JSON
 * Add const modifier to decoder signature
 * Only free TR_MSG payload if it is non-NULL
common/tr_msg.c