svn commit: r252217 - stable/8/usr.sbin/pkg

Baptiste Daroussin bapt at FreeBSD.org
Tue Jun 25 21:50:06 UTC 2013


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);
 


More information about the svn-src-all mailing list