From: "cron2 (Code Review)" Date: Fri, 12 Sep 2025 15:36:42 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., marco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <73e80c0abc4c0fd3c578b1e3c530bc53fa4fedde-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="4kf66h91MP0="; 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 Cc: flichtenheld , plaisthos , openvpn-devel --4kf66h91MP0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/11= 77?usp=3Demail ) 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(-) 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: merged --4kf66h91MP0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

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(-)

diff --git a/src/openvpn/push_util.c b/src/openvpn/push_util.cindex bd3992b..f7a4fca 100644
--- a/src/openvpn/push= _util.c
+++ b/src/openvpn/push_util.c
@@ -1= 61,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(&ms= gs[i], push_update_cmd);
if (process_incoming_push= _update(c, pull_permission_mask(c), option_types_found, &msgs[i], true)= =3D=3D PUSH_MSG_ERROR)

To view, visit = change 1= 177. To unsubscribe, or for help writing mail filters, visit settings.

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: merged
--4kf66h91MP0=--