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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to