diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index 19261c37..0e9e0db3 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -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,
