diff options
author | rhatdan <dwalsh@redhat.com> | 2012-10-15 15:25:31 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-02-05 20:14:39 -0500 |
commit | 019e6fd6d4e383ae82b65a2f5868e377dd8af571 (patch) | |
tree | 147ecaa5f3ff6f246aabf6abf331b69ad050d7f4 /libselinux/src/label.c | |
parent | 2677b72191205b329d4743d2cf0d5607091d18d0 (diff) | |
download | android_external_selinux-019e6fd6d4e383ae82b65a2f5868e377dd8af571.tar.gz android_external_selinux-019e6fd6d4e383ae82b65a2f5868e377dd8af571.tar.bz2 android_external_selinux-019e6fd6d4e383ae82b65a2f5868e377dd8af571.zip |
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>
Diffstat (limited to 'libselinux/src/label.c')
0 files changed, 0 insertions, 0 deletions