From patchwork Tue Jun 16 13:37:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 6617981 Return-Path: X-Original-To: patchwork-linux-rdma@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 53D5A9F326 for ; Tue, 16 Jun 2015 13:38:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88F11205E1 for ; Tue, 16 Jun 2015 13:38:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DACF203E6 for ; Tue, 16 Jun 2015 13:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755959AbbFPNiB (ORCPT ); Tue, 16 Jun 2015 09:38:01 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:33875 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754186AbbFPNiA (ORCPT ); Tue, 16 Jun 2015 09:38:00 -0400 Received: by wgv5 with SMTP id 5so12507910wgv.1 for ; Tue, 16 Jun 2015 06:37:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=pT4tPKObSb3W3m61J3Rcnx4LlJG5tQ3dnAKF1bRLD4E=; b=IqcQvEWKoo0CWjVzia15BPbygZQjCiJ60G324/u/EGAUoPhtTY1L/Vk6t1+jSGigFf dw6t+8Epaz16lwjF+VZ0UYxEtssZg/QxpyDioZd2SrSjoaNqPW13jBSJsJqoNrclP13U GXnxw0UYkQaayelO8B0A6KDy0dcdoeYp3mA7O+4rC36UsQlak+zY2Nf5IdYzU5sE/XWx r5hgLP1jey08jDcFl0hii0LZd5BgPsrPZs0SSKqfawXDCdXE1+ujMZBEcm4llmr2RgD5 F6s5xP5tHlZ4R+t76S4ZDgnLJRW3BCUibcnIyDhHYZUvlOKqerxrJj+GmHJGxQf+3K+O QaZg== X-Gm-Message-State: ALoCoQkzLNPkV/j7RBofZVHGh1Jps+wzN+pXVBUJO1OAx4Xv0xm8X740O+GMg4xRZCUVicXUikRU X-Received: by 10.180.36.4 with SMTP id m4mr6323596wij.34.1434461859820; Tue, 16 Jun 2015 06:37:39 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-223.hsd1.ct.comcast.net. [71.234.225.223]) by mx.google.com with ESMTPSA id vz2sm1712934wjc.18.2015.06.16.06.37.37 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Jun 2015 06:37:39 -0700 (PDT) Message-ID: <558026A4.3090907@dev.mellanox.co.il> Date: Tue, 16 Jun 2015 09:37:40 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "Hefty, Sean" CC: "linux-rdma (linux-rdma@vger.kernel.org)" , Ilya Nelkenbaum , Ilya Nelkenbaum Subject: [PATCH acm] acme.c: Fix IPv6 address handling in inet_any_pton Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Ilya Nelkenbaum In inet_any_pton() routine, src_addr was used by mistake instead of addr argument. Signed-off-by: Ilya Nelkenbaum Signed-off-by: Hal Rosenstock --- acm/src/acme.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/acm/src/acme.c b/acm/src/acme.c index 9bf7557..d54c8b9 100644 --- a/acm/src/acme.c +++ b/acm/src/acme.c @@ -787,7 +787,7 @@ static int inet_any_pton(char *addr, struct sockaddr *sa) if (ret <= 0) { sin6 = (struct sockaddr_in6 *) sa; sa->sa_family = AF_INET6; - ret = inet_pton(AF_INET6, src_addr, &sin6->sin6_addr); + ret = inet_pton(AF_INET6, addr, &sin6->sin6_addr); } return ret;