From owner-svn-src-stable-9@FreeBSD.ORG Tue Jun 25 21:49:07 2013 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 646E43C5; Tue, 25 Jun 2013 21:49:07 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 55BCF191F; Tue, 25 Jun 2013 21:49:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5PLn7IM065066; Tue, 25 Jun 2013 21:49:07 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5PLn7QG065065; Tue, 25 Jun 2013 21:49:07 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201306252149.r5PLn7QG065065@svn.freebsd.org> From: Baptiste Daroussin Date: Tue, 25 Jun 2013 21:49:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r252216 - stable/9/usr.sbin/pkg X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jun 2013 21:49:07 -0000 Author: bapt Date: Tue Jun 25 21:49:06 2013 New Revision: 252216 URL: http://svnweb.freebsd.org/changeset/base/252216 Log: MFC r251560 Fix a bad calloc(3) call Modified: stable/9/usr.sbin/pkg/dns_utils.c Directory Properties: stable/9/usr.sbin/pkg/ (props changed) Modified: stable/9/usr.sbin/pkg/dns_utils.c ============================================================================== --- stable/9/usr.sbin/pkg/dns_utils.c Tue Jun 25 21:44:48 2013 (r252215) +++ stable/9/usr.sbin/pkg/dns_utils.c Tue Jun 25 21:49:06 2013 (r252216) @@ -66,7 +66,7 @@ dns_getsrvinfo(const char *zone) p += len + NS_QFIXEDSZ; } - res = calloc(ancount, sizeof(struct dns_srvinfo)); + res = calloc(ancount, sizeof(struct dns_srvinfo *)); if (res == NULL) return (NULL);