View | Details | Raw Unified | Return to bug 27990
Collapse All | Expand All

(-)ypbind.c (-2 / +3 lines)
Lines 394-400 Link Here
394
	int i;
394
	int i;
395
	DIR *dird;
395
	DIR *dird;
396
	struct dirent *dirp;
396
	struct dirent *dirp;
397
	struct _dom_binding *ypdb;
397
	struct _dom_binding *ypdb, *next;
398
398
399
	/* Check that another ypbind isn't already running. */
399
	/* Check that another ypbind isn't already running. */
400
	if ((yplockfd = (open(YPBINDLOCK, O_RDONLY|O_CREAT, 0444))) == -1)
400
	if ((yplockfd = (open(YPBINDLOCK, O_RDONLY|O_CREAT, 0444))) == -1)
Lines 493-499 Link Here
493
				syslog(LOG_WARNING, "select: %m");
493
				syslog(LOG_WARNING, "select: %m");
494
			break;
494
			break;
495
		default:
495
		default:
496
			for(ypdb=ypbindlist; ypdb; ypdb=ypdb->dom_pnext) {
496
			for(ypdb=ypbindlist; ypdb; ypdb=next) {
497
				next = ypdb->dom_pnext;
497
				if (READFD > 0 && FD_ISSET(READFD, &fdsr)) {
498
				if (READFD > 0 && FD_ISSET(READFD, &fdsr)) {
498
					handle_children(ypdb);
499
					handle_children(ypdb);
499
					if (children == (MAX_CHILDREN - 1))
500
					if (children == (MAX_CHILDREN - 1))

Return to bug 27990