From: "mrbff (Code Review)" Date: Thu, 11 Sep 2025 14:52:11 +0000 In-Reply-To: References: Reply-To: marco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <435400bd3b377fac160906c49186af08a4f88aa3-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="zlTJVJoGjnM="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: push-update-server: comment about `buf_string_compare_advance()` usag... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --zlTJVJoGjnM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=3Demail to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review-1 by flichtenheld Change subject: push-update-server: comment about `buf_string_compare_advan= ce()` usage in `send_single_push_update()` ...................................................................... push-update-server: comment about `buf_string_compare_advance()` usage in `= send_single_push_update()` Change-Id: I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb Signed-off-by: Marco Baffo --- 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/2 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: 2 Gerrit-Owner: mrbff Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --zlTJVJoGjnM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

mrbff uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Code-Review-1 by flichtenheld

push-update-server: comment about `buf_string=
_compare_advance()` usage in `send_single_push_update()`

Change-Id: = I73f8ad9bf105920f4bde357ea9dcf0e485f3f3cb
Signed-off-by: Marco Baffo <= ;marco@...2726...>
---
M src/openvpn/push_util.c
1 file changed= , 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.n=
et:29418/openvpn refs/changes/77/1177/2
diff --git a/src/openvpn/pu=
sh_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 m= imic the behavior
+ = * inside `process_incoming_push_msg()`. However, we don't need
+ * to check t= he return value here because we just want to `advance`,
+ * meaning we skip the `push_up= date_cmd' we added earlier.
*/
buf_string_compare_advance(&msgs[i], push_update_cmd);
if (process_incoming_push_update(c, pull_permission_mas= k(c), option_types_found, &msgs[i], true) =3D=3D PUSH_MSG_ERROR)=

To view, visit change 1177. To unsubscribe, or fo= r help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73f8ad9bf105920f4bde357ea9d= cf0e485f3f3cb
Gerrit-Change-Number: 1177
Gerrit-PatchSet: 2
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-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--zlTJVJoGjnM=--