Changeset View
Changeset View
Standalone View
Standalone View
b/agent/command-ssh.c
Context not available. | |||||
goto out; | goto out; | ||||
} | } | ||||
pi = gcry_calloc_secure (2, sizeof (*pi) + MAX_PASSPHRASE_LEN + 1); | pi = gcry_calloc_secure (2, sizeof (*pi) - 1 + MAX_PASSPHRASE_LEN + 1); | ||||
if (!pi) | if (!pi) | ||||
{ | { | ||||
err = gpg_error_from_syserror (); | err = gpg_error_from_syserror (); | ||||
goto out; | goto out; | ||||
} | } | ||||
pi2 = pi + (sizeof *pi + MAX_PASSPHRASE_LEN + 1); | pi2 = (struct pin_entry_info_s *)((char *)pi + (sizeof (*pi) - 1 | ||||
+ MAX_PASSPHRASE_LEN + 1)); | |||||
pi->max_length = MAX_PASSPHRASE_LEN + 1; | pi->max_length = MAX_PASSPHRASE_LEN + 1; | ||||
pi->max_tries = 1; | pi->max_tries = 1; | ||||
pi->with_repeat = 1; | pi->with_repeat = 1; | ||||
Context not available. |