sudo_sss_setdefs(struct sudo_nss *nss)
{
struct sudo_sss_handle *handle = nss->handle;
- struct sss_sudo_result *sss_result;
+ struct sss_sudo_result *sss_result = NULL;
struct sss_sudo_rule *sss_rule;
uint32_t sss_error;
unsigned int i;
printf("%s%s%s\n", safe_cmnd ? safe_cmnd : user_cmnd,
user_args ? " " : "", user_args ? user_args : "");
- if (sss_result != NULL)
- handle->fn_free_result(sss_result);
+ handle->fn_free_result(sss_result);
debug_return_int(!found);
}
struct sudo_lbuf *lbuf)
{
struct sudo_sss_handle *handle = nss->handle;
-
struct sss_sudo_result *sss_result = NULL;
struct sss_sudo_rule *rule;
unsigned int i, count = 0;
count += sudo_sss_display_entry_short(handle, rule, lbuf);
}
- if (sss_result != NULL)
- handle->fn_free_result(sss_result);
+ handle->fn_free_result(sss_result);
if (sudo_lbuf_error(lbuf))
debug_return_int(-1);