From: "cron2 (Code Review)" Date: Fri, 12 Sep 2025 15:36:40 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., marco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <73e80c0abc4c0fd3c578b1e3c530bc53fa4fedde-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Di0wRq14b8A="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: push-update-server: comment about buf_string_compare_advance() usage ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mrbff , plaisthos , flichtenheld Cc: openvpn-devel --Di0wRq14b8A= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#4) to the change originally created by= mrbff. ( http://gerrit.openvpn.net/c/openvpn/+/1177?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: push-update-server: comment about buf_string_compare_advanc= e() usage in send_single_push_update() ...................................................................... push-update-server: comment about buf_string_compare_advance() usage in sen= d_single_push_update() Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb Signed-off-by: Marco Baffo Acked-by: Frank Lichtenheld Message-Id: <20250912131519.43222-1-frank@...2641...> URL: https://sourceforge.net/p/openvpn/mailman/message/59232447/ URL: https://gerrit.openvpn.net/c/openvpn/+/1177 Signed-off-by: Gert Doering --- M src/openvpn/push_util.c 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/1177/4 diff --git a/src/openvpn/push_util.c b/src/openvpn/push_util.c index bd3992b..f7a4fca 100644 --- a/src/openvpn/push_util.c +++ b/src/openvpn/push_util.c @@ -161,6 +161,10 @@ * will not be routed towards the client. * For the same reason we later update the vhash too in * `send_push_update()` function. + * Using `buf_string_compare_advance()` we mimic the behavior + * inside `process_incoming_push_msg()`. However, we don't need + * to check the return value here because we just want to `advance= `, + * meaning we skip the `push_update_cmd' we added earlier. */ buf_string_compare_advance(&msgs[i], push_update_cmd); if (process_incoming_push_update(c, pull_permission_mask(c), optio= n_types_found, &msgs[i], true) =3D=3D PUSH_MSG_ERROR) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb Gerrit-Change-Number: 1177 Gerrit-PatchSet: 4 Gerrit-Owner: mrbff Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --Di0wRq14b8A= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #4 to the change originally cr= eated by mrbff.

View Change

The following approvals got outdated an= d were removed: Code-Review+2 by flichtenheld

push-update-server: comment about buf_string_=
compare_advance() usage in send_single_push_update()

Change-Id: I73f= 8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Signed-off-by: Marco Baffo <mar= co@...2726...>
Acked-by: Frank Lichtenheld <frank@...2641...>Message-Id: <20250912131519.43222-1-frank@...2641...>
URL: https= ://sourceforge.net/p/openvpn/mailman/message/59232447/
URL: https://gerr= it.openvpn.net/c/openvpn/+/1177
Signed-off-by: Gert Doering <gert@...493...= 1296...>
---
M src/openvpn/push_util.c
1 file changed, 4 insert= ions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/o=
penvpn refs/changes/77/1177/4
diff --git a/src/openvpn/push_util.c =
b/src/openvpn/push_util.c
index bd3992b..f7a4fca 100644
--- a/src/openvpn/push_util.c
+++ b/src/openvp= n/push_util.c
@@ -161,6 +161,10 @@
= * will not be routed towards the client.
* For = the same reason we later update the vhash too in
= * `send_push_update()` function.
+ * Using `buf_string_compare_advance()` we mimic the b= ehavior
+ * i= nside `process_incoming_push_msg()`. However, we don't need
<= span style=3D"color: hsl(120, 100%, 40%);">+ * to check the return = value here because we just want to `advance`,

+ * meaning we skip the `push_update_cmd&#= 39; we added earlier.
*/
= buf_string_compare_advance(&msgs[i], push_update_cmd);
if (process_incoming_push_update(c, pull_permission_mask(c), opti= on_types_found, &msgs[i], true) =3D=3D PUSH_MSG_ERROR)
=

To view, visit change 1177. To unsubscribe, or for help wri= ting mail filters, visit set= tings.

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9d= cf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 4
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--Di0wRq14b8A=--