mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Actually allocate the new strbuf.
Oops - the one build platform whose warnings would have pointed out that goof is the one that doesn't run in my usual pre-push test...
This commit is contained in:
parent
2af10ee8d1
commit
92eedabf49
2
sshecc.c
2
sshecc.c
@ -1269,7 +1269,7 @@ static void ssh_ecdhkex_w_setup(ecdh_key *dh)
|
|||||||
|
|
||||||
static void ssh_ecdhkex_m_setup(ecdh_key *dh)
|
static void ssh_ecdhkex_m_setup(ecdh_key *dh)
|
||||||
{
|
{
|
||||||
strbuf *bytes;
|
strbuf *bytes = strbuf_new();
|
||||||
for (size_t i = 0; i < dh->curve->fieldBytes; ++i)
|
for (size_t i = 0; i < dh->curve->fieldBytes; ++i)
|
||||||
put_byte(bytes, random_byte());
|
put_byte(bytes, random_byte());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user