Skip to content

Commit

Permalink
ames: call getaddrinfo with fqdn for more reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova authored Oct 19, 2023
1 parent 9097efb commit ce75db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/vere/io/ames.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,10 +1109,10 @@ _ames_czar(u3_pact* pac_u)
// NB: . separator not counted, as [nam_c] includes a ~ that we skip
//
pac_u->rut_u.dns_c =
c3_malloc(1 + strlen(nam_c) + strlen(sam_u->dns_c));
c3_malloc(2 + strlen(nam_c) + strlen(sam_u->dns_c));

sas_i =
snprintf(pac_u->rut_u.dns_c, 255, "%s.%s", nam_c + 1, sam_u->dns_c);
snprintf(pac_u->rut_u.dns_c, 255, "%s.%s.", nam_c + 1, sam_u->dns_c);

c3_free(nam_c);
u3z(nam);
Expand Down

0 comments on commit ce75db5

Please sign in to comment.