X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Futils%2Fctdlmigrate.c;h=19539ba37d13b2c46b6ed5eafa3bf626595f6142;hb=1efb9fb0f5b86fbc4caba80735540fa78c1bff41;hp=87ce92ffd2bf7bce5169647deb10c5b663553e0c;hpb=30334bb44aec32ea020b31837f8ad639d56f273b;p=citadel.git diff --git a/citadel/utils/ctdlmigrate.c b/citadel/utils/ctdlmigrate.c index 87ce92ffd..19539ba37 100644 --- a/citadel/utils/ctdlmigrate.c +++ b/citadel/utils/ctdlmigrate.c @@ -4,7 +4,6 @@ // // This program is open source software. Use, duplication, or disclosure // is subject to the terms of the GNU General Public License, version 3. -// The program is distributed without any warranty, expressed or implied. #include #include @@ -101,7 +100,8 @@ static int tcp_connectsock(char *host, char *service) { if (rc == 1) { // dotted quad hints.ai_family = AF_INET; hints.ai_flags |= AI_NUMERICHOST; - } else { + } + else { rc = inet_pton(AF_INET6, host, &serveraddr); if (rc == 1) { // IPv6 address hints.ai_family = AF_INET6;