From owner-svn-src-all@freebsd.org Thu Feb 8 14:53:35 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D1CCF09FAC; Thu, 8 Feb 2018 14:53:35 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F76D6BBAE; Thu, 8 Feb 2018 14:53:35 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0A6E617798; Thu, 8 Feb 2018 14:53:35 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w18ErY4m062230; Thu, 8 Feb 2018 14:53:34 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w18ErYam062228; Thu, 8 Feb 2018 14:53:34 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201802081453.w18ErYam062228@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 8 Feb 2018 14:53:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329018 - in head: lib/libc/rpc usr.sbin/ypserv X-SVN-Group: head X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: in head: lib/libc/rpc usr.sbin/ypserv X-SVN-Commit-Revision: 329018 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2018 14:53:35 -0000 Author: pfg Date: Thu Feb 8 14:53:34 2018 New Revision: 329018 URL: https://svnweb.freebsd.org/changeset/base/329018 Log: su_data: correct macro expansion. Protect su_data() users from strange macro expansion. Obtained from: linux libtirpc Modified: head/lib/libc/rpc/svc_dg.c head/usr.sbin/ypserv/yp_svc_udp.c Modified: head/lib/libc/rpc/svc_dg.c ============================================================================== --- head/lib/libc/rpc/svc_dg.c Thu Feb 8 14:39:07 2018 (r329017) +++ head/lib/libc/rpc/svc_dg.c Thu Feb 8 14:53:34 2018 (r329018) @@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$"); #include "rpc_com.h" #include "mt_misc.h" -#define su_data(xprt) ((struct svc_dg_data *)(xprt->xp_p2)) +#define su_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2)) #define rpc_buffer(xprt) ((xprt)->xp_p1) #ifndef MAX Modified: head/usr.sbin/ypserv/yp_svc_udp.c ============================================================================== --- head/usr.sbin/ypserv/yp_svc_udp.c Thu Feb 8 14:39:07 2018 (r329017) +++ head/usr.sbin/ypserv/yp_svc_udp.c Thu Feb 8 14:53:34 2018 (r329018) @@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); #include #include "yp_extern.h" -#define su_data(xprt) ((struct svc_dg_data *)(xprt->xp_p2)) +#define su_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2)) /* * We need to be able to manually set the transaction ID in the