From 242a90e54fb79d0cf7ed3a0f1311274150f1e0a7 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Fri, 14 May 2010 03:38:27 +0200 Subject: [PATCH] indented --- src/comm.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/comm.cc b/src/comm.cc index 6a44e60e88..237b318020 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1234,6 +1234,7 @@ comm_connect_addr(int sock, const IpAddress &address) * trust its handled properly. */ if (F->sock_family == AF_INET && !address.IsIPv4()) { + errno = ENETUNREACH; return COMM_ERR_PROTOCOL; } @@ -1245,6 +1246,7 @@ comm_connect_addr(int sock, const IpAddress &address) * condition here is simple. */ if (!F->local_addr.IsIPv4() && address.IsIPv4()) { + errno = ENETUNREACH; return COMM_ERR_PROTOCOL; } @@ -1341,9 +1343,9 @@ comm_connect_addr(int sock, const IpAddress &address) else if (ignoreErrno(errno)) status = COMM_INPROGRESS; else if (errno == EAFNOSUPPORT || errno == EINVAL) - return COMM_ERR_PROTOCOL; + return COMM_ERR_PROTOCOL; else - return COMM_ERROR; + return COMM_ERROR; address.NtoA(F->ipaddr, MAX_IPSTRLEN); -- 2.47.3