mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 283 - ipmi_intf_socket_connect fails with IPv4 hosts
A recent IPv6 patch broke IPv4 connections. Fix the incorrect conditional to get it going again. Commit for Anton Blanchard
This commit is contained in:
parent
5949b19d44
commit
0b97d32c25
@ -383,7 +383,7 @@ ipmi_intf_socket_connect(struct ipmi_intf * intf)
|
|||||||
session->ai_family = AF_UNSPEC;
|
session->ai_family = AF_UNSPEC;
|
||||||
for (rp = rp0; rp != NULL; rp = rp->ai_next) {
|
for (rp = rp0; rp != NULL; rp = rp->ai_next) {
|
||||||
/* We are only interested in IPv4 and IPv6 */
|
/* 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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user