From 7dcf7275974021848cdd57781abc7eb9aa77feed Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 9 Jul 2012 11:35:26 -0400 Subject: Fix use-after-free Coverity #12803 --- src/sss_client/sudo_testcli/sudo_testcli.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/sss_client/sudo_testcli/sudo_testcli.c b/src/sss_client/sudo_testcli/sudo_testcli.c index d86fb752..50675f94 100644 --- a/src/sss_client/sudo_testcli/sudo_testcli.c +++ b/src/sss_client/sudo_testcli/sudo_testcli.c @@ -86,6 +86,7 @@ int main(int argc, char **argv) } sss_sudo_free_result(result); + result = NULL; /* get rules */ -- cgit