From 993ee338d9de0e488bf735cc1bf961fa2ba186ee Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 25 Aug 2023 11:19:42 -0600 Subject: [PATCH] Only set I/O logging callbacks if SESSID_MAX is defined. --- plugins/sudoers/callbacks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sudoers/callbacks.c b/plugins/sudoers/callbacks.c index cb63f7644..003d6ead7 100644 --- a/plugins/sudoers/callbacks.c +++ b/plugins/sudoers/callbacks.c @@ -451,6 +451,7 @@ set_callbacks(void) /* Set locale callback. */ sudo_defs_table[I_SUDOERS_LOCALE].callback = sudoers_locale_callback; +#ifdef SESSID_MAX /* Set maxseq callback. */ sudo_defs_table[I_MAXSEQ].callback = cb_maxseq; @@ -462,6 +463,7 @@ set_callbacks(void) /* Set iolog_mode callback. */ sudo_defs_table[I_IOLOG_MODE].callback = cb_iolog_mode; +#endif /* SESSID_MAX */ /* Set timestampowner callback. */ sudo_defs_table[I_TIMESTAMPOWNER].callback = cb_timestampowner;