kbx: Avoid faulty fclose in an error case.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Jan 2016 07:39:08 +0000 (08:39 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Jan 2016 07:39:08 +0000 (08:39 +0100)
commitdb82b6131d437bf6ba34db0e08b7dfa9edb11e45
treed56b3bd97e7301fa960d81c39b516256a92b133f
parent6deafb92abe100ff67e3a0a230a39e8c0ad41900
kbx: Avoid faulty fclose in an error case.

* kbx/keybox-update.c (blob_filecopy): Do not close an uninitialized
file pointer after a failure to create a temp file.
* kbx/keybox-openpgp.c (next_packet): Remove duplicate assignment of
PKTLEN.

Signed-off-by: Werner Koch <wk@gnupg.org>
kbx/keybox-openpgp.c
kbx/keybox-update.c