From patchwork Thu Feb 18 14:20:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 8350211 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B78A09F38B for ; Thu, 18 Feb 2016 14:20:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D1472010E for ; Thu, 18 Feb 2016 14:20:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4051F20395 for ; Thu, 18 Feb 2016 14:20:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946325AbcBROUj (ORCPT ); Thu, 18 Feb 2016 09:20:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57979 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946324AbcBROUi (ORCPT ); Thu, 18 Feb 2016 09:20:38 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 930CA1E22 for ; Thu, 18 Feb 2016 14:20:38 +0000 (UTC) Received: from localhost (ovpn-112-68.ams2.redhat.com [10.36.112.68]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1IEKbn5003379; Thu, 18 Feb 2016 09:20:38 -0500 From: Stefan Hajnoczi To: linux-nfs@vger.kernel.org Cc: Steve Dickson , Stefan Hajnoczi Subject: [PATCH] libexport.a: fix missing brace in host_ntop() fallback Date: Thu, 18 Feb 2016 14:20:36 +0000 Message-Id: <1455805236-30534-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP An if statement has been missing a brace since host_ntop() was added in commit 94ce1eb94babb4c587b2826452fb053cba745098 ("libexport.a: Add helpers to manage DNS lookups"). Signed-off-by: Stefan Hajnoczi --- support/export/hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/export/hostname.c b/support/export/hostname.c index 4daabe9..94e98a5 100644 --- a/support/export/hostname.c +++ b/support/export/hostname.c @@ -69,7 +69,7 @@ host_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) memset(buf, 0, buflen); - if (sin->sin_family != AF_INET) + if (sin->sin_family != AF_INET) { (void)strncpy(buf, "bad family", buflen - 1); return buf; }