summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-07-09 11:35:26 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-07-09 13:49:20 -0400
commit7dcf7275974021848cdd57781abc7eb9aa77feed (patch)
treecb8844d8ccf113b1122d537f0a1ed1efa7916975
parentbb446567389e894bf4d64a9589606d1951ac7902 (diff)
downloadsssd-7dcf7275974021848cdd57781abc7eb9aa77feed.tar.gz
sssd-7dcf7275974021848cdd57781abc7eb9aa77feed.tar.xz
sssd-7dcf7275974021848cdd57781abc7eb9aa77feed.zip
Fix use-after-free
Coverity #12803
-rw-r--r--src/sss_client/sudo_testcli/sudo_testcli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sss_client/sudo_testcli/sudo_testcli.c b/src/sss_client/sudo_testcli/sudo_testcli.c
index d86fb7521..50675f943 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 */