View | Details | Raw Unified | Return to bug 34842 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/src/lib/libc/rpc/pmap_rmt.c (-4 / +8 lines)
Lines 330-344 Link Here
330
	 * minute or so
330
	 * minute or so
331
	 */
331
	 */
332
	for (t.tv_sec = 4; t.tv_sec <= 14; t.tv_sec += 2) {
332
	for (t.tv_sec = 4; t.tv_sec <= 14; t.tv_sec += 2) {
333
		int success = 0;
333
		for (i = 0; i < nets; i++) {
334
		for (i = 0; i < nets; i++) {
334
			baddr.sin_addr = addrs[i];
335
			baddr.sin_addr = addrs[i];
335
			if (sendto(sock, outbuf, outlen, 0,
336
			if (sendto(sock, outbuf, outlen, 0,
336
				(struct sockaddr *)&baddr,
337
				(struct sockaddr *)&baddr,
337
				sizeof (struct sockaddr)) != outlen) {
338
				sizeof (struct sockaddr)) == outlen) {
338
				perror("Cannot send broadcast packet");
339
				success++;
339
				stat = RPC_CANTSEND;
340
				goto done_broad;
341
			}
340
			}
341
		}
342
		if (!success) {
343
			perror("Cannot send broadcast packet");
344
			stat = RPC_CANTSEND;
345
			goto done_broad;
342
		}
346
		}
343
		if (eachresult == NULL) {
347
		if (eachresult == NULL) {
344
			stat = RPC_SUCCESS;
348
			stat = RPC_SUCCESS;

Return to bug 34842