]> git.decadent.org.uk Git - nfs-utils.git/commit
gssd: avoid double-free upon write failure
authorJim Meyering <jim@meyering.net>
Thu, 5 Jan 2012 18:37:04 +0000 (13:37 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 5 Jan 2012 20:42:40 +0000 (15:42 -0500)
commitace87c773e2ac5c6f59f984563290f57cdbcfd88
tree3d0012ba0ebcbe0d334bff730f82268a24ad3bfe
parent89dde6fbabf6590ad7ccccc1f20f371f27da2207
gssd: avoid double-free upon write failure

Free just calloc'd enc_key.data from one place, unconditionally,
after calling write_lucid_keyblock, rather than from three places.

Coverity spotted the possible double free.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/context_lucid.c