mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
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 <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>
This commit is contained in:
parent
8ccce69dc1
commit
5ac8c3c7a2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user