From 92eedabf49d91d7ad2c8e538650373c74fff571e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 2 Jan 2019 22:16:33 +0000 Subject: [PATCH] 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... --- sshecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshecc.c b/sshecc.c index 5d898104..6a30d55f 100644 --- a/sshecc.c +++ b/sshecc.c @@ -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());