]> granicus.if.org Git - sudo/commit
sudoers_debug_register() was not setting the active debug instance
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 31 Oct 2016 19:36:35 +0000 (13:36 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 31 Oct 2016 19:36:35 +0000 (13:36 -0600)
commita3a545e4168f7d4dbbe458535e7656993a9e1d8e
tree7f379d0ee17b8308877cdf71fd4e9c5a68382685
parente8af335eb8bb0a5ab0b334cc52b6c58129f9bf50
sudoers_debug_register() was not setting the active debug instance
to sudoers_debug_instance when called from the I/O log plugin.  This
is because it relied on sudo_debug_register to do that but
sudoers_debug_parse_flags() doesn't set debug_files[]
sudoers_debug_instance is already set (we can only init sudoers
debug once).

To work around this, just make sudoers_debug_instance the active
debug instance in sudoers_debug_register() when it is already set.
plugins/sudoers/sudoers_debug.c