mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
agent: fix agent_askpin.
* agent/call-pinentry.c (agent_askpin): Fix off-by-one error.
This commit is contained in:
parent
f70f669536
commit
818fa4f71e
@ -830,7 +830,7 @@ agent_askpin (ctrl_t ctrl,
|
|||||||
|
|
||||||
*pininfo->pin = 0; /* Reset the PIN. */
|
*pininfo->pin = 0; /* Reset the PIN. */
|
||||||
rc = pinentry_loopback(ctrl, "PASSPHRASE", &passphrase, &size,
|
rc = pinentry_loopback(ctrl, "PASSPHRASE", &passphrase, &size,
|
||||||
pininfo->max_length);
|
pininfo->max_length - 1);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user