Skip to content

Commit

Permalink
declare signer array using typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Sep 17, 2024
1 parent 2fa393d commit 3405528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/ziti.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ int ziti_get_ext_jwt_signers(ziti_context ztx, ziti_ext_signers_cb cb, void *ctx
return ZITI_INVALID_STATE;

if (model_map_size(&ztx->ext_signers) > 0) {
const ziti_jwt_signer **arr = calloc(model_map_size(&ztx->ext_signers) + 1, sizeof(ziti_jwt_signer*));
ziti_jwt_signer_array arr = calloc(model_map_size(&ztx->ext_signers) + 1, sizeof(ziti_jwt_signer*));

int i = 0;
MODEL_MAP_FOR(it, ztx->ext_signers) {
Expand Down

0 comments on commit 3405528

Please sign in to comment.