ID#277 - support for hostnames longer than 64 chars

ID#313 ipmitool doesn't support hostname long than 64 symbols
ID#277 Minor issue with ipmi_intf_session_set_hostname()

Commit adds support pretty much for FQDN not just up to the length of one label.
This is achieved by change in in struct ipmi_session; and strdup() of user
input. Of course, we have to free() this once we're done.
This commit is contained in:
Zdenek Styblik
2014-10-17 19:33:37 +02:00
parent 58837647c2
commit deb9a4ed5d
6 changed files with 26 additions and 33 deletions

View File

@ -305,12 +305,7 @@ serial_bm_close(struct ipmi_intf * intf)
close(intf->fd);
intf->fd = -1;
}
if (intf->session) {
free(intf->session);
intf->session = NULL;
}
ipmi_intf_session_cleanup(intf);
intf->opened = 0;
}