Anton Blanchard
2013-11-22 00:34:38 UTC
A recent IPv6 patch broke IPv4 connections. Fix the incorrect
conditional to get it going again.
---
src/plugins/ipmi_intf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/ipmi_intf.c b/src/plugins/ipmi_intf.c
index 1ea6fbe..579cf02 100644
--- a/src/plugins/ipmi_intf.c
+++ b/src/plugins/ipmi_intf.c
@@ -382,7 +382,7 @@ ipmi_intf_socket_connect(struct ipmi_intf * intf)
session->ai_family = AF_UNSPEC;
for (rp = rp0; rp != NULL; rp = rp->ai_next) {
/* We are only interested in IPv4 and IPv6 */
- if ((rp->ai_family != AF_INET6) && (rp->ai_family == AF_INET))
+ if ((rp->ai_family != AF_INET6) && (rp->ai_family != AF_INET))
continue;
intf->fd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
conditional to get it going again.
---
src/plugins/ipmi_intf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/ipmi_intf.c b/src/plugins/ipmi_intf.c
index 1ea6fbe..579cf02 100644
--- a/src/plugins/ipmi_intf.c
+++ b/src/plugins/ipmi_intf.c
@@ -382,7 +382,7 @@ ipmi_intf_socket_connect(struct ipmi_intf * intf)
session->ai_family = AF_UNSPEC;
for (rp = rp0; rp != NULL; rp = rp->ai_next) {
/* We are only interested in IPv4 and IPv6 */
- if ((rp->ai_family != AF_INET6) && (rp->ai_family == AF_INET))
+ if ((rp->ai_family != AF_INET6) && (rp->ai_family != AF_INET))
continue;
intf->fd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
--
1.8.3.2
1.8.3.2