Changeset ed40c80 in rtems-libbsd


Ignore:
Timestamp:
Sep 20, 2018, 8:22:53 AM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
3f09126
Parents:
4d8f9e6
git-author:
Sebastian Huber <sebastian.huber@…> (09/20/18 08:22:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/20/18 08:24:35)
Message:

mDNSResponder: Fix gAllocatedEventFDs allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mDNSResponder/mDNSPosix/mDNSPosix.c

    r4d8f9e6 red40c80  
    12611261#ifdef __rtems__
    12621262    if (err == mStatus_NoError) {
    1263         gAllocatedEventFDs = calloc(1, howmany(rtems_libio_number_iops, sizeof(fd_set) * 8));
     1263        gAllocatedEventFDs = calloc(howmany(rtems_libio_number_iops, sizeof(fd_set) * 8), sizeof(fd_set));
    12641264        if (gAllocatedEventFDs == NULL) err = mStatus_NoMemoryErr;
    12651265    }
Note: See TracChangeset for help on using the changeset viewer.