mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-02 02:33:37 +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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user