svn commit: r252216 - stable/9/usr.sbin/pkg

Baptiste Daroussin bapt at FreeBSD.org
Tue Jun 25 21:49:07 UTC 2013


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


More information about the svn-src-stable-9 mailing list