Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2013 21:50:05 +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-8@freebsd.org
Subject:   svn commit: r252217 - stable/8/usr.sbin/pkg
Message-ID:  <201306252150.r5PLo5Gj065269@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Jun 25 21:50:05 2013
New Revision: 252217
URL: http://svnweb.freebsd.org/changeset/base/252217

Log:
  MFC r251560
  
  Fix a bad calloc(3) call

Modified:
  stable/8/usr.sbin/pkg/dns_utils.c
Directory Properties:
  stable/8/usr.sbin/pkg/   (props changed)

Modified: stable/8/usr.sbin/pkg/dns_utils.c
==============================================================================
--- stable/8/usr.sbin/pkg/dns_utils.c	Tue Jun 25 21:49:06 2013	(r252216)
+++ stable/8/usr.sbin/pkg/dns_utils.c	Tue Jun 25 21:50:05 2013	(r252217)
@@ -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?201306252150.r5PLo5Gj065269>