Date: Tue, 25 Jun 2013 21:49:07 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> 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 Message-ID: <201306252149.r5PLn7QG065065@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306252149.r5PLn7QG065065>