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

Collapse All | Expand All

(-)sshconnect.c (-1 / +4 lines)
Lines 276-282 ssh_create_socket(int privileged, struct Link Here
276
		error("socket: %s", strerror(errno));
276
		error("socket: %s", strerror(errno));
277
		return -1;
277
		return -1;
278
	}
278
	}
279
	fcntl(sock, F_SETFD, FD_CLOEXEC);
279
	if (fcntl(sock, F_SETFD, FD_CLOEXEC) < 0) {
280
		error("socket: %s", strerror(errno));
281
		return -1;
282
	}
280
283
281
	/* Bind the socket to an alternative local IP address */
284
	/* Bind the socket to an alternative local IP address */
282
	if (options.bind_address == NULL && !privileged)
285
	if (options.bind_address == NULL && !privileged)

Return to bug 2163