Hi,

On Mon, Apr 05, 2021 at 10:00:07AM +0200, Antonio Quartulli wrote:
>      /* compute PRF */
> -    if (!ssl_tls1_PRF(BPTR(&seed), BLEN(&seed), secret, secret_len, output, 
> output_len))
> -    {
> -        ret = false;
> -    }
> +    ret = ssl_tls1_PRF(BPTR(&seed), BLEN(&seed), secret, secret_len, output,
> +                       output_len);

If touching this, I would move the "bool ret" declaration to here as
well.  Doesn't make sense to have a "bool ret = true" declaration 15
lines further up if the first use is "assign it a new value", then.

Thus,

+    bool ret = ssl_tls1_PRF(BPTR(&seed), BLEN(&seed), secret, secret_len,
+                            output, output_len);

gert

-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to