summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-20 10:22:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-20 10:24:35 +0200
commited40c80fc1e18be026291f15d08bebe77e2a27f0 (patch)
tree0eab1464dbbf0f14e72fc04c45e9fa520b94ab03
parentmDNSResponder: Honour file descriptor maximum (diff)
downloadrtems-libbsd-ed40c80fc1e18be026291f15d08bebe77e2a27f0.tar.bz2
mDNSResponder: Fix gAllocatedEventFDs allocation
-rwxr-xr-xmDNSResponder/mDNSPosix/mDNSPosix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mDNSResponder/mDNSPosix/mDNSPosix.c b/mDNSResponder/mDNSPosix/mDNSPosix.c
index d8058f6e..6bc22af3 100755
--- a/mDNSResponder/mDNSPosix/mDNSPosix.c
+++ b/mDNSResponder/mDNSPosix/mDNSPosix.c
@@ -1260,7 +1260,7 @@ mDNSexport mStatus mDNSPlatformInit(mDNS *const m)
mDNS_SetFQDN(m);
#ifdef __rtems__
if (err == mStatus_NoError) {
- gAllocatedEventFDs = calloc(1, howmany(rtems_libio_number_iops, sizeof(fd_set) * 8));
+ gAllocatedEventFDs = calloc(howmany(rtems_libio_number_iops, sizeof(fd_set) * 8), sizeof(fd_set));
if (gAllocatedEventFDs == NULL) err = mStatus_NoMemoryErr;
}
if (err == mStatus_NoError) err = pthread_mutexattr_init(&attr);