> Arne Schwabe <a...@rfc2549.org> hat am 25.04.2022 14:27 geschrieben:
[...]
> diff --git a/src/openvpn/mudp.c b/src/openvpn/mudp.c
> index 4fbe3c1a3..780ca171d 100644
> --- a/src/openvpn/mudp.c
> +++ b/src/openvpn/mudp.c
> @@ -39,6 +39,17 @@
>  #include <sys/inotify.h>
>  #endif
>  
> +static bool
> +do_pre_decrypt_check(struct multi_context *m)
> +{
> +    ASSERT(m->top.c2.tls_auth_standalone);
> +    if (!tls_pre_decrypt_lite(m->top.c2.tls_auth_standalone, 
> &m->top.c2.from, &m->top.c2.buf))
> +    {
> +        return false;
> +    }
> +    return true;

You could replace four lines with one:

return tls_pre_decrypt_lite(m->top.c2.tls_auth_standalone, &m->top.c2.from, 
&m->top.c2.buf));

But that might not make sense due to changes in later patches? Haven't checked.

Regards,
--
Frank Lichtenheld


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to