=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/child.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/rdist/child.c 2014/07/05 05:05:51 1.18 --- src/usr.bin/rdist/child.c 2014/07/05 05:08:57 1.19 *************** *** 1,4 **** ! /* $OpenBSD: child.c,v 1.18 2014/07/05 05:05:51 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: child.c,v 1.19 2014/07/05 05:08:57 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 378,386 **** for (pc = childlist; pc; pc = pc->c_next) if (pc->c_readfd > rchildfdsn) rchildfdsn = pc->c_readfd; ! rchildfdsp = calloc(howmany(rchildfdsn+1, NFDBITS), sizeof(fd_mask)); ! if (rchildfdsp == NULL) ! return; for (pc = childlist; pc; pc = pc->c_next) if (pc->c_readfd > 0) { --- 378,384 ---- for (pc = childlist; pc; pc = pc->c_next) if (pc->c_readfd > rchildfdsn) rchildfdsn = pc->c_readfd; ! rchildfdsp = xcalloc(howmany(rchildfdsn+1, NFDBITS), sizeof(fd_mask)); for (pc = childlist; pc; pc = pc->c_next) if (pc->c_readfd > 0) {