From: "stipa (Code Review)" Date: Mon, 4 Sep 2023 14:22:14 +0000 References: Reply-To: lstipakov@...277..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="q+EXQ+pfGCA="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[release/2.6]: Support for long INFO/INFO_PRE messages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --q+EXQ+pfGCA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=3Demail to review the following change. Change subject: Support for long INFO/INFO_PRE messages ...................................................................... Support for long INFO/INFO_PRE messages Current hardcoded limit is not defined anywhere and the server (CloudConnexa) sends the longer string in some cases. Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e Signed-off-by: Lev Stipakov --- M src/openvpn/push.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/327/1 diff --git a/src/openvpn/push.c b/src/openvpn/push.c index d468211..663cfbd 100644 --- a/src/openvpn/push.c +++ b/src/openvpn/push.c @@ -243,7 +243,7 @@ * We use >INFOMSG here instead of plain >INFO since INFO is used = to * for management greeting and we don't want to confuse the client */ - struct buffer out =3D alloc_buf_gc(256, &gc); + struct buffer out =3D alloc_buf_gc(1 + 7 + 1 + BLEN(&buf) + 1, &gc= ); buf_printf(&out, ">%s:%s", "INFOMSG", m); management_notify_generic(management, BSTR(&out)); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e Gerrit-Change-Number: 327 Gerrit-PatchSet: 1 Gerrit-Owner: stipa Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --q+EXQ+pfGCA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

stipa would like flichtenheld to review this change.

Vi= ew Change

Support for long INFO/INFO_PRE messages

Current hardco= ded limit is not defined anywhere and
the server (CloudConnexa) sends th= e longer string in some cases.

Change-Id: I2139b62117ba69d643b585d26= 10e8aef15f71d3e
Signed-off-by: Lev Stipakov <lev@...515...>
---=
M src/openvpn/push.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/32=
7/1
diff --git a/src/openvpn/push.c b/src/openvpn/push.c
= index d468211..663cfbd 100644
--- a/src/openvpn/push.= c
+++ b/src/openvpn/push.c
@@ -243,7 +243,7= @@
* We use >INFOMSG here instead of plain &g= t;INFO since INFO is used to
* for management gre= eting and we don't want to confuse the client
= */
- struct buf= fer out =3D alloc_buf_gc(256, &gc);
+ struct buffer out =3D alloc_buf_gc(1 + 7 + 1 + = BLEN(&buf) + 1, &gc);
buf_printf(&out,= ">%s:%s", "INFOMSG", m);
m= anagement_notify_generic(management, BSTR(&out));


To view, visit change 327. To unsubscribe, or f= or help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610= e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--q+EXQ+pfGCA=--