Skip to content

Commit

Permalink
Don't lose error status in kadm5_s_init_with_context
Browse files Browse the repository at this point in the history
If either krb5_parse_name() or _kadm5_acl_init() fail
we could return success and a NULL kadm5_handle.
  • Loading branch information
Viktor Dukhovni committed Aug 5, 2018
1 parent 3e58559 commit dd24925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kadm5/init_s.c
Expand Up @@ -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
Expand Down

0 comments on commit dd24925

Please sign in to comment.