Skip to content

Commit

Permalink
ames: fix bugs in czar batch-dns resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
joemfb committed Jun 26, 2024
1 parent 56fdbe9 commit 81d3836
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/vere/io/ames.c
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,7 @@ _ames_czar_here(u3_ames* sam_u, c3_y imp_y, c3_w pip_w)
(pip_w >> 0) & 0xff);
}

sam_u->zar_u.pip_w[imp_y] = imp_y;
sam_u->zar_u.pip_w[imp_y] = pip_w;

{
c3_w blk_w = imp_y >> 5;
Expand Down Expand Up @@ -2680,6 +2680,8 @@ _ames_czar_cb(uv_getaddrinfo_t* adr_u,
_ames_czar_gone(sam_u, imp_y);
}

sam_u->zar_u.pen_s--;

uv_freeaddrinfo(aif_u);
c3_free(res_u);
}
Expand Down Expand Up @@ -2724,7 +2726,7 @@ _ames_czar_all(uv_timer_t* tim_u)

sam_u->zar_u.pen_s = 256;

for ( c3_w i_w; i_w < 256; i_w++ ) {
for ( c3_w i_w = 0; i_w < 256; i_w++ ) {
_ames_czar(sam_u, sam_u->zar_u.dom_c, (c3_y)i_w);
}

Expand Down

0 comments on commit 81d3836

Please sign in to comment.