From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6EF772AACE for ; Thu, 18 Apr 2019 07:35:29 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vQSe8UHgIefX for ; Thu, 18 Apr 2019 07:35:29 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 2E2D629E06 for ; Thu, 18 Apr 2019 07:35:29 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH 1/4] swim: move sockaddr_in checkers to swim_proto.h From: Vladislav Shpilevoy References: <1e3490a96e2daec7906def26f31265d995966204.1555530516.git.v.shpilevoy@tarantool.org> Message-ID: <77eb864c-bb05-4f6d-ec96-b784421b83d8@tarantool.org> Date: Thu, 18 Apr 2019 14:35:26 +0300 MIME-Version: 1.0 In-Reply-To: <1e3490a96e2daec7906def26f31265d995966204.1555530516.git.v.shpilevoy@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org Sorry, accidentally broke a test. The fix is force pushed: ====================================================== swim_inaddr_is_empty(const struct sockaddr_in *addr) { - return addr->sin_port == 0 && addr->sin_addr.s_addr == 0; + return addr->sin_port == 0 || addr->sin_addr.s_addr == 0; } ======================================================