commit e03cc83491255ff69034ff6c824f9ba6062fcddd from: Stefan Sperling date: Thu Sep 24 16:47:06 2020 UTC handle failed connection attempts to git:// servers; patch by jrick commit - b08a0ccd43bb6d5f5cc56ccbb1c5244affccf2a9 commit + e03cc83491255ff69034ff6c824f9ba6062fcddd blob - d82e0a4d378d87beb89d865a329bda29918b1add blob + 3bdd5de6347493883da0c68cd84407fc701bb8e0 --- lib/fetch.c +++ lib/fetch.c @@ -171,8 +171,10 @@ dial_git(int *fetchfd, const char *host, const char *p if ((fd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) continue; - if (connect(fd, p->ai_addr, p->ai_addrlen) == 0) + if (connect(fd, p->ai_addr, p->ai_addrlen) == 0) { + err = NULL; break; + } err = got_error_from_errno("connect"); close(fd); }