From 9adfac2482480cfdbf3aa687c0aa27042142eda4 Mon Sep 17 00:00:00 2001 From: Jia Zhang Date: Thu, 18 Jun 2020 14:21:06 +0000 Subject: [PATCH] rune/libenclave: Fix returning error values for skeleton Signed-off-by: Jia Zhang --- .../internal/runtime/pal/skeleton/liberpal-skeleton.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c index 0a03944..c09aee7 100644 --- a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c +++ b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c @@ -247,16 +247,16 @@ int pal_init(const char *args, const char *log_level) void *bin; if (!encl_data_map(IMAGE, &bin, &bin_size)) - return ENOENT; + return -ENOENT; if (!load_sigstruct(SIGSTRUCT, &sigstruct)) - return ENOENT; + return -ENOENT; if (!load_token(TOKEN, &token)) - return ENOENT; + return -ENOENT; if (!encl_build(&secs, bin, bin_size, &sigstruct, &token)) - return EINVAL; + return -EINVAL; initialized = true; return 0; -- GitLab