mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 02:57:22 +00:00
fix hostname check
This commit is contained in:
parent
4883543139
commit
cb105b246f
@ -1296,7 +1296,7 @@ int ipmi_lan_open(struct ipmi_intf * intf)
|
|||||||
if (!s->privlvl)
|
if (!s->privlvl)
|
||||||
s->privlvl = IPMI_SESSION_PRIV_USER;
|
s->privlvl = IPMI_SESSION_PRIV_USER;
|
||||||
|
|
||||||
if (!s->hostname) {
|
if (!strlen(s->hostname)) {
|
||||||
printf("No hostname specified!\n");
|
printf("No hostname specified!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user