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);
|
kadm5_s_destroy(ctx);
|
||||||
else
|
else
|
||||||
*server_handle = ctx;
|
*server_handle = ctx;
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
kadm5_ret_t
|
kadm5_ret_t
|
||||||
|
Reference in New Issue
Block a user