From: Arne Schwabe Date: Sat, 3 Apr 2021 12:24:44 +0000 (+0200) Subject: Fix async push broken after auth deferred refactor X-Git-Tag: v2.6_beta1~558 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac8c3c7a2a761b8430ad2a494afcda8b48fca76;p=thirdparty%2Fopenvpn.git Fix async push broken after auth deferred refactor 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 Acked-by: Gert Doering 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 --- diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index 72f66c5bb..7c9500f3e 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -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