From dd249257e397a26c48164122c892c96a10b64c44 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Sun, 5 Aug 2018 14:33:31 -0400 Subject: [PATCH] Don't lose error status in kadm5_s_init_with_context If either krb5_parse_name() or _kadm5_acl_init() fail we could return success and a NULL kadm5_handle. --- lib/kadm5/init_s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kadm5/init_s.c b/lib/kadm5/init_s.c index ada584825b..926c23510e 100644 --- a/lib/kadm5/init_s.c +++ b/lib/kadm5/init_s.c @@ -103,7 +103,7 @@ kadm5_s_init_with_context(krb5_context context, kadm5_s_destroy(ctx); else *server_handle = ctx; - return 0; + return ret; } kadm5_ret_t