mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Fix faulty length fields in pageant_get_keylist*().
Those must have been wrong _forever_, but because Windows Pageant doesn't mind if the message length is longer than it should be, I've never noticed before. How embarrassing.
This commit is contained in:
parent
b4f17f26e3
commit
66b5455b13
@ -1207,7 +1207,7 @@ void *pageant_get_keylist1(int *length)
|
||||
void *vresponse;
|
||||
int resplen, retval;
|
||||
request[4] = SSH1_AGENTC_REQUEST_RSA_IDENTITIES;
|
||||
PUT_32BIT(request, 4);
|
||||
PUT_32BIT(request, 1);
|
||||
|
||||
retval = agent_query(request, 5, &vresponse, &resplen, NULL, NULL);
|
||||
assert(retval == 1);
|
||||
@ -1239,7 +1239,7 @@ void *pageant_get_keylist2(int *length)
|
||||
int resplen, retval;
|
||||
|
||||
request[4] = SSH2_AGENTC_REQUEST_IDENTITIES;
|
||||
PUT_32BIT(request, 4);
|
||||
PUT_32BIT(request, 1);
|
||||
|
||||
retval = agent_query(request, 5, &vresponse, &resplen, NULL, NULL);
|
||||
assert(retval == 1);
|
||||
|
Loading…
Reference in New Issue
Block a user