commit | 019e6fd6d4e383ae82b65a2f5868e377dd8af571 | [log] [tgz] |
---|---|---|
author | rhatdan <dwalsh@redhat.com> | Mon Oct 15 15:25:31 2012 -0400 |
committer | Eric Paris <eparis@redhat.com> | Tue Feb 05 20:14:39 2013 -0500 |
tree | 147ecaa5f3ff6f246aabf6abf331b69ad050d7f4 | |
parent | 2677b72191205b329d4743d2cf0d5607091d18d0 [diff] |
libselinux: audit2why: Fix segfault if finish() called twice If audit2why.finish is called more than once the global avc variable will be NULL, and thus dereferencing it will obviously cause problems. Thus just bail if avc is NULL and we know cleanup is done. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>