Skip to content

Commit

Permalink
mcmc: upstream update
Browse files Browse the repository at this point in the history
fix fault if connecting to down servers (sometimes)
  • Loading branch information
dormando committed Jul 23, 2024
1 parent bc15562 commit 3031e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/mcmc/mcmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ int mcmc_connect(void *c, char *host, char *port, int options) {
int sock;
int res = MCMC_CONNECTED;
struct addrinfo hints;
struct addrinfo *ai;
struct addrinfo *next;
struct addrinfo *ai = NULL;
struct addrinfo *next = NULL;

// Since our cx memory was likely malloc'ed, ensure we start clear.
memset(ctx, 0, sizeof(mcmc_ctx_t));
Expand Down

0 comments on commit 3031e79

Please sign in to comment.