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.
This commit is contained in:
Viktor Dukhovni
2018-08-05 14:33:31 -04:00
parent 0f91fefe42
commit 492910ec1e

View File

@@ -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