From: Eric Thorpe Date: Thu, 20 Aug 2020 01:42:58 +0000 (-0700) Subject: Fixes a bug in management_callback_send_cc_message, should be strlen instead of sizeof X-Git-Tag: v2.6_beta1~717 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62560e2a29144ffefec231ae7147eb4e9c7dfebf;p=thirdparty%2Fopenvpn.git Fixes a bug in management_callback_send_cc_message, should be strlen instead of sizeof Signed-off-by: Eric Thorpe Acked-by: Arne Schwabe Message-Id: <20200820014258.38377-1-eric@sparklabs.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20783.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/init.c b/src/openvpn/init.c index dfa045b05..a785934a6 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;