diff options
author | pfg <pfg@FreeBSD.org> | 2017-03-20 00:54:45 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2017-03-20 00:54:45 +0000 |
commit | 1ed1f785e01f33f2649e0fdfb2e988deb468274e (patch) | |
tree | 8d35a926ed409c13dc69f94a0d4711bc556185b5 /usr.sbin/ypbind | |
parent | 2d800473977277dc3c127e091da446e889abc460 (diff) | |
download | FreeBSD-src-1ed1f785e01f33f2649e0fdfb2e988deb468274e.zip FreeBSD-src-1ed1f785e01f33f2649e0fdfb2e988deb468274e.tar.gz |
MFC r315212, r315213, r315214, r315215:
mkimg(1): let calloc(3) do the multiplication.
nscd(8): let calloc(3) do the multiplying.
mpsutil(8): let calloc(3) do the multiplying.
ypbind(8): let calloc(3) do the multiplying.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r-- | usr.sbin/ypbind/yp_ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ypbind/yp_ping.c b/usr.sbin/ypbind/yp_ping.c index 4e445ea..2efc7a2 100644 --- a/usr.sbin/ypbind/yp_ping.c +++ b/usr.sbin/ypbind/yp_ping.c @@ -226,7 +226,7 @@ __yp_ping(struct in_addr *restricted_addrs, int cnt, char *dom, short *port) int validsrvs = 0; /* Set up handles. */ - reqs = calloc(1, sizeof(struct ping_req *) * cnt); + reqs = calloc(cnt, sizeof(struct ping_req *)); xid_seed = time(NULL) ^ getpid(); for (i = 0; i < cnt; i++) { |