1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +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:
Simon Tatham 2019-01-02 22:16:33 +00:00
parent 2af10ee8d1
commit 92eedabf49

View File

@ -1269,7 +1269,7 @@ static void ssh_ecdhkex_w_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)
put_byte(bytes, random_byte());