Home GnuPG
Diffusion GnuPG 5e7ea643052b

agent: Avoid double free of empty string in the PIN caching.

Description

agent: Avoid double free of empty string in the PIN caching.

* agent/call-scd.c (handle_pincache_get): Set PIN to NULL.  Also add
DBG_CACHE conditionals and don't return the pin in the debug output.

This is part of

(cherry picked from commit bdbf5cee2ff5bc0773011abde4074003ef9dac70)

  • GnuPG-bug-id: T7129
  • Co-authored-by: Jakub Jelen <jjelen@redhat.com>

Details