Home GnuPG

pinentry-tty: fix segfault on MESSAGE or CONFIRM
93bd60a3ca91Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

pinentry-tty: fix segfault on MESSAGE or CONFIRM

* tty/pinentry-tty.c: avoid prompting for a PIN when one was not asked
  for.

Before this, pinentry-tty would segfault when asked for MESSAGE or
CONFIRM:

0 dkg@alice:~$ pinentry-tty
OK Your orders please
SETDESC testing testing
OK
MESSAGE
testing testing
PIN? :
Segmentation fault
139 dkg@alice:~$

Details

Provenance
dkgAuthored on Apr 28 2015, 7:01 PM
nealCommitted on May 1 2015, 4:58 PM
Parents
rPb4bf75f24f11: pinentry-tty: handle designated tty outside of read_password
Branches
Unknown
Tags
Unknown