mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
kbx: Avoid uninitialized read
* kbx/kbx-client-util.c (datastream_thread): Initialize pointer * kbx/keybox-dump.c (_keybox_dump_cut_records): free blob * kbx/kbxserver.c (kbxd_start_command_handler): do not free passed ctrl * kbx/keyboxd.c (check_own_socket): free sockname -- Signed-off-by: Jakub Jelen <jjelen@redhat.com> GnuPG-bug-id: 5393
This commit is contained in:
parent
fa0771f609
commit
fc5fac83b7
4 changed files with 9 additions and 4 deletions
|
@ -844,7 +844,6 @@ kbxd_start_command_handler (ctrl_t ctrl, gnupg_fd_t fd, unsigned int session_id)
|
|||
{
|
||||
log_error (_("can't allocate control structure: %s\n"),
|
||||
gpg_strerror (gpg_error_from_syserror ()));
|
||||
xfree (ctrl);
|
||||
return;
|
||||
}
|
||||
ctrl->server_local->client_pid = ASSUAN_INVALID_PID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue