From owner-svn-src-head@FreeBSD.ORG Sat Jun 8 23:48:14 2013 Return-Path: Delivered-To: svn-src-head@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 4321CFBD; Sat, 8 Jun 2013 23:48:14 +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 35CAF1DA4; Sat, 8 Jun 2013 23:48:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r58NmEZG062172; Sat, 8 Jun 2013 23:48:14 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r58NmEtZ062171; Sat, 8 Jun 2013 23:48:14 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201306082348.r58NmEtZ062171@svn.freebsd.org> From: Baptiste Daroussin Date: Sat, 8 Jun 2013 23:48:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251560 - head/usr.sbin/pkg X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jun 2013 23:48:14 -0000 Author: bapt Date: Sat Jun 8 23:48:13 2013 New Revision: 251560 URL: http://svnweb.freebsd.org/changeset/base/251560 Log: Fix a bad calloc(3) call MFC after: 2 weeks Modified: head/usr.sbin/pkg/dns_utils.c Modified: head/usr.sbin/pkg/dns_utils.c ============================================================================== --- head/usr.sbin/pkg/dns_utils.c Sat Jun 8 23:45:11 2013 (r251559) +++ head/usr.sbin/pkg/dns_utils.c Sat Jun 8 23:48:13 2013 (r251560) @@ -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);