Skip to contentSkip to conversation

multi.c: use mi->cc_config instead of config variable

PATCH In review Antonio Quartulli 2 participants 2 messages Jul 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multi.c: use mi->cc_config instead of config variable

Commit ("Remove parameter config from multi_client_connect_mda") has removed the config variable in favour of mi->cc_config, however one occurence was not changed.

Fix it now by properly using mi->cc_config.

---
 src/openvpn/multi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/multi.c +1 -1
index 19261c37..0e9e0db3 100644
@@ -1729,7 +1729,7 @@ multi_client_connect_mda(struct multi_context *m,
     {
         struct buffer_entry *be;
 
-        for (be = config->head; be != NULL; be = be->next)
+        for (be = mi->cc_config->head; be != NULL; be = be->next)
         {
             const char *opt = BSTR(&be->buf);
             options_string_import(&mi->context.options,
Signature · 1 line
2.27.0
Acked-by on v1 1/1
#1 lore raw

Test compiled. Stared at code. Grumbled. Ran a small t_server test ("just to be sure").

Your patch has been applied to the master branch.

commit 712f2629c8406c017931a082cd996b439b5dfdc9

Author: Antonio Quartulli
Date:   Wed Jul 1 16:05:17 2020 +0200
     multi.c: use mi->cc_config instead of config variable

     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]/msg20180.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering