fix hostname check

This commit is contained in:
Duncan Laurie 2004-09-03 22:18:38 +00:00
parent 4883543139
commit cb105b246f

View File

@ -1296,7 +1296,7 @@ int ipmi_lan_open(struct ipmi_intf * intf)
if (!s->privlvl)
s->privlvl = IPMI_SESSION_PRIV_USER;
if (!s->hostname) {
if (!strlen(s->hostname)) {
printf("No hostname specified!\n");
return -1;
}