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:
@@ -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
|
||||
|
Reference in New Issue
Block a user