[PATCH 1/1] audit: misc bug and warning fixes