Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yrutschle committed Aug 28, 2021
1 parent 1a3341c commit a704c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int start_listen_sockets(struct listen_endpoint *sockfd[])

for (addr = start_addr; addr; addr = addr->ai_next) {
num_addr++;
*sockfd = realloc(*sockfd, num_addr * sizeof(*sockfd));
*sockfd = realloc(*sockfd, num_addr * sizeof(*sockfd[0]));
(*sockfd)[num_addr-1].socketfd = listen_single_addr(addr, keepalive, udp);
(*sockfd)[num_addr-1].type = udp ? SOCK_DGRAM : SOCK_STREAM;
if (cfg.verbose)
Expand Down

0 comments on commit a704c7f

Please sign in to comment.