From: "mrbff (Code Review)" Date: Thu, 11 Sep 2025 14:25:34 +0000 References: Reply-To: marco@...2726..., arne-openvpn@...1227..., 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="YSRaqcXqtmQ="; 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 --YSRaqcXqtmQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1177?usp=3Demail to review the following change. Change subject: push-update-server: comment about `buf_string_compare_advan= ce()` usage in `send_single_push_updaate()` ...................................................................... push-update-server: comment about `buf_string_compare_advance()` usage in `= send_single_push_updaate()` 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/1 diff --git a/src/openvpn/push_util.c b/src/openvpn/push_util.c index bd3992b..68a5474 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 behavio + * 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: 1 Gerrit-Owner: mrbff Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --YSRaqcXqtmQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

mrbff would like plaisthos and flichtenheld to review t= his change.

V= iew Change

push-update-server: comment about `buf_string_compare_advanc=
e()` usage in `send_single_push_updaate()`

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

git pull ssh://gerrit.openvpn.net:29418/openv=
pn refs/changes/77/1177/1
diff --git a/src/openvpn/push_util.c b/sr=
c/openvpn/push_util.c
index bd3992b..68a5474 100644<= br>--- a/src/openvpn/push_util.c
+++ b/src/openvpn/pu= sh_util.c
@@ -161,6 +161,10 @@
* = will not be routed towards the client.
* For the = same reason we later update the vhash too in
* `s= end_push_update()` function.
+ * Using `buf_string_compare_advance()` we mimic the behav= io
+ * 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' w= e added earlier.
*/
buf_= string_compare_advance(&msgs[i], push_update_cmd);
= if (process_incoming_push_update(c, pull_permission_mask(c), option_ty= pes_found, &msgs[i], true) =3D=3D PUSH_MSG_ERROR)

To view, visit change 1177. 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: 1
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: newchange
--YSRaqcXqtmQ=--