[apparmor] [PATCH v2 08/42] With the auto cleanup changes we can now directly return the value if we have a cache hit.
Tyler Hicks
tyhicks at canonical.com
Fri Mar 6 21:48:24 UTC 2015
From: John Johansen <john.johansen at canonical.com>
Signed-off-by: John Johansen <john.johansen at canonical.com>
[tyhicks: Forward ported patch to trunk]
Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
parser/parser_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parser/parser_main.c b/parser/parser_main.c
index 342ee14..6850086 100644
--- a/parser/parser_main.c
+++ b/parser/parser_main.c
@@ -792,7 +792,7 @@ int process_profile(int option, const char *profilename)
PERROR("Cache hit: %s\n", cachename);
retval = process_binary(option, cachename);
if (!retval || skip_bad_cache_rebuild)
- goto out;
+ return retval;
}
if (write_cache) {
/* Otherwise, set up to save a cached copy */
--
2.1.4
More information about the AppArmor
mailing list