Fix Identical code for different branches in ipmi_tsol_main() - CID#1261346

Commit adds error message and retval (-1) for an invalid tsol command/parameter.
This commit is contained in:
Zdenek Styblik 2014-12-30 20:00:56 +01:00
parent fb69b5dc9e
commit 8ac8361aca

View File

@ -412,8 +412,10 @@ ipmi_tsol_main(struct ipmi_intf *intf, int argc, char **argv)
print_tsol_usage();
return 0;
} else {
lprintf(LOG_ERR, "Invalid tsol command: '%s'\n",
argv[i]);
print_tsol_usage();
return 0;
return (-1);
}
}