]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix async push broken after auth deferred refactor
authorArne Schwabe <arne@rfc2549.org>
Sat, 3 Apr 2021 12:24:44 +0000 (14:24 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 3 Apr 2021 13:48:27 +0000 (15:48 +0200)
Commit c5fec838e moved the auth control file related
states into its own struct. Unfortunately I forgot
to also do the part inside #if defined(ENABLE_ASYNC_PUSH)

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210403122444.17090-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22007.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/multi.c

index 72f66c5bb0e575f897c6e97b0c87947bd4c26a2e..7c9500f3eee3b395878e5f5920af45009ae0e801 100644 (file)
@@ -2984,11 +2984,11 @@ multi_process_post(struct multi_context *m, struct multi_instance *mi, const uns
          * and an auth_control_file, we assume it got just added and add
          * inotify watch to that file
          */
-        if (ks && ks->auth_control_file && was_unauthenticated
+        if (ks && ks->plugin_auth.auth_control_file && was_unauthenticated
             && (ks->authenticated == KS_AUTH_DEFERRED))
         {
             add_inotify_file_watch(m, mi, m->top.c2.inotify_fd,
-                                   ks->auth_control_file);
+                                   ks->plugin_auth.auth_control_file);
         }
 #endif