Skip to contentSkip to conversation

multi: remove extra brackets in multi_process_incoming_link()

PATCH In review Antonio Quartulli 2 participants 2 messages Sep 13, 2021 – Sep 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multi: remove extra brackets in multi_process_incoming_link()

After getting rid of all PF related ifdef blocks, a pair of useless brackets has remained in multi_process_incoming_link(). These brackets do nothing at the moment and can be just removed.

---
 src/openvpn/multi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
src/openvpn/multi.c +2 -4
index 3453d6aa..103e882e 100644
@@ -3250,10 +3250,8 @@ multi_process_incoming_link(struct multi_context *m, struct multi_instance *inst
                                 /* if dest addr is a known client, route to it */
                                 if (mi)
                                 {
-                                    {
-                                        multi_unicast(m, &c->c2.to_tun, mi);
-                                        register_activity(c, BLEN(&c->c2.to_tun));
-                                    }
+                                    multi_unicast(m, &c->c2.to_tun, mi);
+                                    register_activity(c, BLEN(&c->c2.to_tun));
                                     c->c2.to_tun.len = 0;
                                 }
                             }
Signature · 1 line
2.32.0
Acked-by on v1 1/1
#1 lore raw

"trivial" :-) ("git show -w").

Your patch has been applied to the master branch.

commit c768ee96b49a3df459f584d6050802312815deec

Author: Antonio Quartulli
Date:   Mon Sep 13 16:45:31 2021 +0200
     multi: remove extra brackets in multi_process_incoming_link()

     Signed-off-by: Antonio Quartulli <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg22834.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering