Am 20.08.20 um 03:42 schrieb Eric Thorpe:
> Signed-off-by: Eric Thorpe <e...@sparklabs.com>
> ---
>  src/openvpn/init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/openvpn/init.c b/src/openvpn/init.c
> index dfa045b0..a785934a 100644
> --- a/src/openvpn/init.c
> +++ b/src/openvpn/init.c
> @@ -312,7 +312,7 @@ management_callback_send_cc_message(void *arg,
>                                      const char *parameters)
>  {
>      struct context *c = (struct context *) arg;
> -    size_t len = strlen(command) + 1 + sizeof(parameters) + 1;
> +    size_t len = strlen(command) + 1 + strlen(parameters) + 1;
>      if (len > PUSH_BUNDLE_SIZE)
>      {
>          return false;
> 

Acked-By: Arne Schwabe <a...@rfc2549.org>

This probably has escaped my radar because probably the the 2FA codes
were always small enough to fit into the 8 extra character of a pointer
size.

Arne

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to