diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-03-13 20:51:00 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-03-13 20:51:00 +0000 |
commit | 85f104954a3227fd8548a9ecd48776a416e7483a (patch) | |
tree | fa64d6dfeb77ca9f75dbb2d8ad3f3ac2cd7ee458 /usr.sbin | |
parent | 4b6fa244b22293bcfeb78a7f4b7f20e4aab40933 (diff) | |
download | src-85f104954a3227fd8548a9ecd48776a416e7483a.tar.gz src-85f104954a3227fd8548a9ecd48776a416e7483a.zip |
ypbind(8): let calloc(3) do the multiplying.
Notes
Notes:
svn path=/head/; revision=315215
Diffstat (limited to 'usr.sbin')
-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 4e445ead673e..2efc7a2d0617 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++) { |