Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 394257
Collapse All | Expand All

(-)a/keepalived/core/layer4.c (-1 / +1 lines)
Lines 43-49 tcp_bind_connect(int fd, struct sockaddr_storage *addr, struct sockaddr_storage Link Here
43
	fcntl(fd, F_SETFL, val | O_NONBLOCK);
43
	fcntl(fd, F_SETFL, val | O_NONBLOCK);
44
44
45
	/* Bind socket */
45
	/* Bind socket */
46
	if (bind_addr) {
46
	if (bind_addr && ((struct sockaddr *) bind_addr)->sa_family != AF_UNSPEC) {
47
		addrlen = sizeof(*bind_addr);
47
		addrlen = sizeof(*bind_addr);
48
		if (bind(fd, (struct sockaddr *) bind_addr, addrlen) != 0)
48
		if (bind(fd, (struct sockaddr *) bind_addr, addrlen) != 0)
49
			return connect_error;
49
			return connect_error;

Return to bug 394257