Two minor code cleanups and one NULL deref on error fix.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 14:40:48 +0000 (16:40 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 16 Apr 2014 08:18:17 +0000 (10:18 +0200)
commita34afa8f2053d75f276d6d28dbf1a43db0fd9768
tree68526edee70449f07cea73af77424664193a559f
parentdb3b528239c9d56bc71fd2283e07a3f1d91e4fd0
Two minor code cleanups and one NULL deref on error fix.

* common/estream.c (es_freopen): Remove useless check for STREAM.
* kbx/keybox-blob.c (_keybox_create_x509_blob): Remove useless check
for BLOB.
* tools/sockprox.c (run_proxy): Do not fclose(NULL).
--

Found by Hans-Christoph Steiner with cppcheck.
common/estream.c
kbx/keybox-blob.c
tools/sockprox.c