Changeset d496d66 in rtems-libbsd
- Timestamp:
- 11/04/14 10:56:59 (9 years ago)
- Branches:
- 4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
- Children:
- ffbee8a
- Parents:
- a736dda
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/04/14 10:56:59)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (11/04/14 12:02:55)
- Location:
- mDNSResponder/mDNSPosix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mDNSResponder/mDNSPosix/mDNSPosix.c
ra736dda rd496d66 835 835 836 836 // Allocate the interface structure itself. 837 intf = (PosixNetworkInterface*) malloc(sizeof(*intf));837 intf = (PosixNetworkInterface*)calloc(1, sizeof(*intf)); 838 838 if (intf == NULL) { assert(0); err = ENOMEM; } 839 839 … … 1434 1434 } 1435 1435 1436 mDNSexport void * mDNSPlatformMemAllocate(mDNSu32 len) { return( malloc(len)); }1436 mDNSexport void * mDNSPlatformMemAllocate(mDNSu32 len) { return(calloc(1, len)); } 1437 1437 mDNSexport void mDNSPlatformMemFree (void *mem) { free(mem); } 1438 1438 -
mDNSResponder/mDNSPosix/mDNSUNP.c
ra736dda rd496d66 246 246 len = 100 * sizeof(struct ifreq); /* initial buffer size guess */ 247 247 for ( ; ; ) { 248 buf = (char*) malloc(len);248 buf = (char*)calloc(1, len); 249 249 if (buf == NULL) { 250 250 goto gotError;
Note: See TracChangeset
for help on using the changeset viewer.