mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
db3b528239
commit
a34afa8f20
3 changed files with 5 additions and 4 deletions
|
@ -443,7 +443,8 @@ run_proxy (void)
|
|||
out:
|
||||
|
||||
pthread_attr_destroy (&thread_attr);
|
||||
fclose (protocol_file); /* FIXME, err checking. */
|
||||
if (protocol_file)
|
||||
fclose (protocol_file); /* FIXME, err checking. */
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue